언어

SqlTraceException 생성자

정의

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

오버로드

Name Description
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

String 일반 SQL Trace 예외와 관련된 메시지를 지정하는 값입니다.

예제

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

SerializationInfo SQL Trace 예외의 직렬화 정보를 지정하는 객체 값입니다.

context
StreamingContext

StreamingContext SQL Trace 예외의 스트리밍 컨텍스트를 지정하는 객체 값입니다.

예제

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

String 일반 SQL Trace 예외와 관련된 메시지를 지정하는 값입니다.

innerException
Exception

Exception SQL Trace 예외의 내부 예외를 지정하는 객체 값입니다.

예제

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

String 일반 SQL Trace 예외와 관련된 메시지를 지정하는 값입니다.

예제

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

String 일반 SQL Trace 예외와 관련된 메시지를 지정하는 값입니다.

innerException
Exception

Exception 내부 예외를 지정하는 객체 값입니다.

예제

SMO 예외 처리

적용 대상