다음을 통해 공유


SqlTraceException Constructor (Type, String)

Initializes a new instance of the SQLTraceException class with the specified source type and the specified message.

네임스페이스: Microsoft.SqlServer.Management.Trace
어셈블리: Microsoft.SqlServer.ConnectionInfo (in microsoft.sqlserver.connectioninfo.dll)

구문

‘선언
Public Sub New ( _
    messageSource As Type, _
    messageID As String _
)
public SqlTraceException (
    Type messageSource,
    string messageID
)
public:
SqlTraceException (
    Type^ messageSource, 
    String^ messageID
)
public SqlTraceException (
    Type messageSource, 
    String messageID
)
public function SqlTraceException (
    messageSource : Type, 
    messageID : String
)

매개 변수

  • messageSource
    A Type system object value that specifies the source of the exception.
  • messageID

주의

This namespace, class, or member is supported only in version 2.0 of the Microsoft .NET Framework.

How to: Catch an Exception in Visual Basic .NET

플랫폼

개발 플랫폼

지원되는 플랫폼 목록은 SQL Server 2005 설치를 위한 하드웨어 및 소프트웨어 요구 사항을 참조하십시오.

대상 플랫폼

지원되는 플랫폼 목록은 SQL Server 2005 설치를 위한 하드웨어 및 소프트웨어 요구 사항을 참조하십시오.

참고 항목

참조

SqlTraceException Class
SqlTraceException Members
Microsoft.SqlServer.Management.Trace Namespace

관련 자료

Handling SMO Exceptions