共用方式為


SqlTraceFailToInstantiateTypeException 建構函式 (String)

Initiates a new instance of the SQLTraceFailToInstantiateTypeException class with the specified message.

命名空間:  Microsoft.SqlServer.Management.Trace
組件:  Microsoft.SqlServer.ConnectionInfoExtended (在 Microsoft.SqlServer.ConnectionInfoExtended.dll 中)

語法

'宣告
Public Sub New ( _
    typeName As String _
)
'用途
Dim typeName As String 

Dim instance As New SqlTraceFailToInstantiateTypeException(typeName)
public SqlTraceFailToInstantiateTypeException(
    string typeName
)
public:
SqlTraceFailToInstantiateTypeException(
    String^ typeName
)
new : 
        typeName:string -> SqlTraceFailToInstantiateTypeException
public function SqlTraceFailToInstantiateTypeException(
    typeName : String
)

參數

  • typeName
    型別:System.String
    A String value that specifies the message associated with the SQL Trace Fail to Instantiate Type exception.

範例

How to: Catch an Exception in Visual Basic .NET

請參閱

參考

SqlTraceFailToInstantiateTypeException 類別

SqlTraceFailToInstantiateTypeException 多載

Microsoft.SqlServer.Management.Trace 命名空間

其他資源

處理 SMO 例外狀況