共用方式為


ScriptWriterException 建構函式 (String, Exception)

Initializes a new instance of the ScriptWriterException class, specifying the exception message, and the exception which caused the exception.

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

語法

'宣告
Public Sub New ( _
    message As String, _
    innerException As Exception _
)
'用途
Dim message As String 
Dim innerException As Exception 

Dim instance As New ScriptWriterException(message, _
    innerException)
public ScriptWriterException(
    string message,
    Exception innerException
)
public:
ScriptWriterException(
    String^ message, 
    Exception^ innerException
)
new : 
        message:string * 
        innerException:Exception -> ScriptWriterException
public function ScriptWriterException(
    message : String, 
    innerException : Exception
)

參數

  • message
    型別:System.String
    A String which contains the message to associate with the exception.

請參閱

參考

ScriptWriterException 類別

ScriptWriterException 多載

Microsoft.SqlServer.Management.Smo 命名空間