SqlTraceException 생성자

정의

SqlTraceException 클래스의 새 인스턴스를 초기화합니다.

오버로드

SqlTraceException()

SqlTraceException 클래스의 새 인스턴스를 초기화합니다.

SqlTraceException(String)

지정된 메시지를 사용하여 SqlTraceException 클래스의 새 인스턴스를 초기화합니다.

SqlTraceException(SerializationInfo, StreamingContext)

지정한 직렬화 정보와 지정한 스트리밍 컨텍스트를 포함하는 SqlTraceException 클래스의 새 인스턴스를 초기화합니다.

SqlTraceException(String, Exception)

지정된 메시지 및 내부 예외를 사용하여 SqlTraceException 클래스의 새 인스턴스를 초기화합니다.

SqlTraceException(Type, String)

지정한 원본 유형과 지정한 메시지를 포함하는 SqlTraceException 클래스의 새 인스턴스를 초기화합니다.

SqlTraceException(Type, String, Exception)

지정한 원본 유형, 메시지 및 내부 예외를 포함하는 SqlTraceException 클래스의 새 인스턴스를 초기화합니다.

SqlTraceException()

SqlTraceException 클래스의 새 인스턴스를 초기화합니다.

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

예제

SMO 예외 처리

적용 대상

SqlTraceException(String)

지정된 메시지를 사용하여 SqlTraceException 클래스의 새 인스턴스를 초기화합니다.

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

매개 변수

message
String

일반 SQL 추적 예외와 연결된 메시지를 지정하는 String 값입니다.

예제

SMO 예외 처리

적용 대상

SqlTraceException(SerializationInfo, StreamingContext)

지정한 직렬화 정보와 지정한 스트리밍 컨텍스트를 포함하는 SqlTraceException 클래스의 새 인스턴스를 초기화합니다.

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

매개 변수

info
SerializationInfo

SQL 추적 예외에 대한 직렬화 정보를 지정하는 SerializationInfo 개체 값입니다.

context
StreamingContext

SQL 추적 예외에 대한 스트리밍 컨텍스트를 지정하는 StreamingContext 개체 값입니다.

예제

SMO 예외 처리

적용 대상

SqlTraceException(String, Exception)

지정된 메시지 및 내부 예외를 사용하여 SqlTraceException 클래스의 새 인스턴스를 초기화합니다.

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

매개 변수

message
String

일반 SQL 추적 예외와 연결된 메시지를 지정하는 String 값입니다.

innerException
Exception

SQL 추적 예외에 대한 내부 예외를 지정하는 Exception 개체 값입니다.

예제

SMO 예외 처리

적용 대상

SqlTraceException(Type, String)

지정한 원본 유형과 지정한 메시지를 포함하는 SqlTraceException 클래스의 새 인스턴스를 초기화합니다.

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

매개 변수

messageSource
Type

예외의 원본을 지정하는 Type 시스템 개체 값입니다.

messageID
String

일반 SQL 추적 예외와 연결된 메시지를 지정하는 String 값입니다.

예제

SMO 예외 처리

적용 대상

SqlTraceException(Type, String, Exception)

지정한 원본 유형, 메시지 및 내부 예외를 포함하는 SqlTraceException 클래스의 새 인스턴스를 초기화합니다.

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

매개 변수

messageSource
Type

예외의 원본을 지정하는 Type 시스템 개체 값입니다.

messageID
String

일반 SQL 추적 예외와 연결된 메시지를 지정하는 String 값입니다.

innerException
Exception

내부 예외를 지정하는 Exception 시스템 개체 값입니다.

예제

SMO 예외 처리

적용 대상