Error 类

Represents a data contracts error message.

继承层次结构

System. . :: . .Object
  Microsoft.MasterDataServices.Services.DataContracts..::..Error

命名空间:  Microsoft.MasterDataServices.Services.DataContracts
程序集:  Microsoft.MasterDataServices.Services(在 Microsoft.MasterDataServices.Services.dll 中)

语法

声明
<DataContractAttribute(Name := "Error", Namespace := "https://schemas.microsoft.com/sqlserver/masterdataservices/2009/09")> _
Public Class Error
用法
Dim instance As Error
[DataContractAttribute(Name = "Error", Namespace = "https://schemas.microsoft.com/sqlserver/masterdataservices/2009/09")]
public class Error
[DataContractAttribute(Name = L"Error", Namespace = L"https://schemas.microsoft.com/sqlserver/masterdataservices/2009/09")]
public ref class Error
[<DataContractAttribute(Name = "Error", Namespace = "https://schemas.microsoft.com/sqlserver/masterdataservices/2009/09")>]
type Error =  class end
public class Error

Error 类型公开以下成员。

构造函数

  名称 说明
公共方法 Error() () () () Initializes a new instance of the Error class with default values.
公共方法 Error(String, String) Initializes a new instance of the Error class with the specified code and description values.
公共方法 Error(String, String, ErrorContext) Initializes a new instance of the Error class with the specified code, description, and error context values.

页首

属性

  名称 说明
公共属性 Code Gets or sets the error code.
公共属性 Context Gets or sets the object context of the error, if applicable.
公共属性 Description Gets or sets the text describing the error.

页首

方法

  名称 说明
公共方法 Equals (从 Object 继承。)
受保护方法 Finalize (从 Object 继承。)
公共方法 GetHashCode (从 Object 继承。)
公共方法 GetType (从 Object 继承。)
受保护方法 MemberwiseClone (从 Object 继承。)
公共方法 ToString Generates a formatted trace message for the error. (覆盖 Object. . :: . .ToString() () () ()。)

页首

线程安全

此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。不保证所有实例成员都是线程安全的。