ExpressionSerializationException 构造函数 (String, String, String, String)

Initializes a new instance of the ExceptionAlreadyRegisteredException class with the specified received name and type, and expected name and type.

命名空间:  Microsoft.SqlServer.Management.Dmf
程序集:  Microsoft.SqlServer.Dmf(在 Microsoft.SqlServer.Dmf.dll 中)

语法

声明
Public Sub New ( _
    typeRead As String, _
    nameRead As String, _
    typeExpected As String, _
    nameExpected As String _
)
用法
Dim typeRead As String 
Dim nameRead As String 
Dim typeExpected As String 
Dim nameExpected As String 

Dim instance As New ExpressionSerializationException(typeRead, _
    nameRead, typeExpected, nameExpected)
public ExpressionSerializationException(
    string typeRead,
    string nameRead,
    string typeExpected,
    string nameExpected
)
public:
ExpressionSerializationException(
    String^ typeRead, 
    String^ nameRead, 
    String^ typeExpected, 
    String^ nameExpected
)
new : 
        typeRead:string * 
        nameRead:string * 
        typeExpected:string * 
        nameExpected:string -> ExpressionSerializationException
public function ExpressionSerializationException(
    typeRead : String, 
    nameRead : String, 
    typeExpected : String, 
    nameExpected : String
)

参数

  • typeRead
    类型:System.String
    A String value that specifies the type that is read during the serialization.
  • nameRead
    类型:System.String
    A String value that specifies the name that is read during serialization.
  • typeExpected
    类型:System.String
    A String value that specifies the type that is expected during the serialization.
  • nameExpected
    类型:System.String
    A String value that specifies the name that is expected during serialization.

注释

仅 Microsoft .NET Framework 的 2.0 版本支持此命名空间、类或成员。

示例

处理 SMO 异常

请参阅

参考

ExpressionSerializationException 类

ExpressionSerializationException 重载

Microsoft.SqlServer.Management.Dmf 命名空间