SqlTraceFailToLoadInstAPIAssemblyException 构造函数

定义

初始化 SqlTraceFailToLoadInstAPIAssemblyException 类的新实例。

重载

SqlTraceFailToLoadInstAPIAssemblyException()

初始化 SqlTraceFailToLoadInstAPIAssemblyException 类的新实例。

SqlTraceFailToLoadInstAPIAssemblyException(String)

使用指定的消息初始化 SqlTraceFailToLoadInstAPIAssemblyException 类的新实例。

SqlTraceFailToLoadInstAPIAssemblyException(SerializationInfo, StreamingContext)

使用指定的序列化信息和指定的流上下文初始化 SqlTraceFailToLoadInstAPIAssemblyException 类的新实例。

SqlTraceFailToLoadInstAPIAssemblyException(String, Exception)

使用指定的消息和内部异常初始化 SqlTraceFailToLoadInstAPIAssemblyException 类的新实例。

SqlTraceFailToLoadInstAPIAssemblyException(Type, String)

使用指定的消息源和消息初始化 SqlTraceFailToLoadInstAPIAssemblyException 类的新实例。

SqlTraceFailToLoadInstAPIAssemblyException()

初始化 SqlTraceFailToLoadInstAPIAssemblyException 类的新实例。

public:
 SqlTraceFailToLoadInstAPIAssemblyException();
public SqlTraceFailToLoadInstAPIAssemblyException ();
Public Sub New ()

示例

处理 SMO 异常

适用于

SqlTraceFailToLoadInstAPIAssemblyException(String)

使用指定的消息初始化 SqlTraceFailToLoadInstAPIAssemblyException 类的新实例。

public:
 SqlTraceFailToLoadInstAPIAssemblyException(System::String ^ message);
public SqlTraceFailToLoadInstAPIAssemblyException (string message);
new Microsoft.SqlServer.Management.Trace.SqlTraceFailToLoadInstAPIAssemblyException : string -> Microsoft.SqlServer.Management.Trace.SqlTraceFailToLoadInstAPIAssemblyException
Public Sub New (message As String)

参数

message
String

一个 String 值,该值指定与常见的“SQL 跟踪未能加载 Inst API 程序集”异常关联的消息。

示例

处理 SMO 异常

适用于

SqlTraceFailToLoadInstAPIAssemblyException(SerializationInfo, StreamingContext)

使用指定的序列化信息和指定的流上下文初始化 SqlTraceFailToLoadInstAPIAssemblyException 类的新实例。

protected:
 SqlTraceFailToLoadInstAPIAssemblyException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected SqlTraceFailToLoadInstAPIAssemblyException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new Microsoft.SqlServer.Management.Trace.SqlTraceFailToLoadInstAPIAssemblyException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.SqlServer.Management.Trace.SqlTraceFailToLoadInstAPIAssemblyException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

参数

info
SerializationInfo

一个 SerializationInfo 对象值,该值指定“SQL 跟踪未能加载 Inst API 程序集”异常的序列化信息。

context
StreamingContext

一个 StreamingContext 对象值,该值指定“SQL 跟踪未能加载 Inst API 程序集”异常的流上下文。

示例

处理 SMO 异常

适用于

SqlTraceFailToLoadInstAPIAssemblyException(String, Exception)

使用指定的消息和内部异常初始化 SqlTraceFailToLoadInstAPIAssemblyException 类的新实例。

public:
 SqlTraceFailToLoadInstAPIAssemblyException(System::String ^ message, Exception ^ innerException);
public SqlTraceFailToLoadInstAPIAssemblyException (string message, Exception innerException);
new Microsoft.SqlServer.Management.Trace.SqlTraceFailToLoadInstAPIAssemblyException : string * Exception -> Microsoft.SqlServer.Management.Trace.SqlTraceFailToLoadInstAPIAssemblyException
Public Sub New (message As String, innerException As Exception)

参数

message
String

一个 String 值,该值指定与常见的“SQL 跟踪未能加载 Inst API 程序集”异常关联的消息。

innerException
Exception

一个 Exception 对象值,该值指定“SQL 跟踪未能加载 Inst API 程序集”异常的内部异常。

示例

处理 SMO 异常

适用于

SqlTraceFailToLoadInstAPIAssemblyException(Type, String)

使用指定的消息源和消息初始化 SqlTraceFailToLoadInstAPIAssemblyException 类的新实例。

public:
 SqlTraceFailToLoadInstAPIAssemblyException(Type ^ messageSource, System::String ^ messageID);
public SqlTraceFailToLoadInstAPIAssemblyException (Type messageSource, string messageID);
new Microsoft.SqlServer.Management.Trace.SqlTraceFailToLoadInstAPIAssemblyException : Type * string -> Microsoft.SqlServer.Management.Trace.SqlTraceFailToLoadInstAPIAssemblyException
Public Sub New (messageSource As Type, messageID As String)

参数

messageSource
Type

一个 Type 系统对象值,该值指定消息的来源。

messageID
String

一个 String 值,该值指定与常见的“SQL 跟踪未能加载 Inst API 程序集”异常关联的消息。

示例

处理 SMO 异常

适用于