CollectorException 建構函式 (String, Exception)
建立集合物件,並傳遞錯誤訊息以及造成錯誤的例外狀況。
命名空間: Microsoft.SqlServer.Management.Collector
組件: Microsoft.SqlServer.Management.Collector (在 Microsoft.SqlServer.Management.Collector.dll 中)
語法
'宣告
Public Sub New ( _
message As String, _
innerException As Exception _
)
'用途
Dim message As String
Dim innerException As Exception
Dim instance As New CollectorException(message, _
innerException)
public CollectorException(
string message,
Exception innerException
)
public:
CollectorException(
String^ message,
Exception^ innerException
)
new :
message:string *
innerException:Exception -> CollectorException
public function CollectorException(
message : String,
innerException : Exception
)
參數
- message
型別:System. . :: . .String
String 值,這個值是錯誤訊息。
- innerException
型別:System. . :: . .Exception
代表擲回例外狀況的 Exception。
備註
This namespace, class, or member is supported only in version 2.0 of the Microsoft .NET Framework.