Share via


DacException 클래스

The DacException class is a generic exception that is raised when an error occurs using the Microsoft.SqlServer.Management.Dac namespace.

네임스페이스:  Microsoft.SqlServer.Management.Dac
어셈블리:  Microsoft.SqlServer.Management.Dac(Microsoft.SqlServer.Management.Dac.dll)

구문

‘선언
<SerializableAttribute> _
Public Class DacException _
    Inherits SqlServerManagementException
‘사용 방법
Dim instance As DacException
[SerializableAttribute]
public class DacException : SqlServerManagementException
[SerializableAttribute]
public ref class DacException : public SqlServerManagementException
[<SerializableAttribute>]
type DacException =  
    class
        inherit SqlServerManagementException
    end
public class DacException extends SqlServerManagementException

DacException 유형에서 다음 멤버를 표시합니다.

생성자

  이름 설명
공용 메서드 DacException() () () () Initializes a new instance of the DacException class.
공용 메서드 DacException(String) Initializes a new instance of the DacException class that has the specified message text.
보호된 메서드 DacException(SerializationInfo, StreamingContext) Initializes a new instance of the DacException class specifying a location to stream serialized information.
공용 메서드 DacException(String, Exception) Initializes a new instance of the DacException class that has the specified message text and inner exception.

맨 위로 이동

속성

  이름 설명
공용 속성 DacExceptionType Gets the type of the exception.
공용 속성 Data (Exception에서 상속됨)
공용 속성 HelpLink Gets a string with the URL help link that further explains the exception. (Exception. . :: . .HelpLink을(를) 재정의함)
보호된 속성 HResult (Exception에서 상속됨)
공용 속성 InnerException (Exception에서 상속됨)
공용 속성 Message (Exception에서 상속됨)
보호된 속성정적 멤버 ProdVer Gets the product version.
공용 속성 Source (Exception에서 상속됨)
공용 속성 StackTrace (Exception에서 상속됨)
공용 속성 TargetSite (Exception에서 상속됨)

맨 위로 이동

메서드

  이름 설명
공용 메서드 Equals (Object에서 상속됨)
보호된 메서드 Finalize (Object에서 상속됨)
공용 메서드 GetBaseException (Exception에서 상속됨)
공용 메서드 GetHashCode (Object에서 상속됨)
공용 메서드 GetObjectData (Exception에서 상속됨)
공용 메서드 GetType (Exception에서 상속됨)
보호된 메서드 Init Initializes provider properties.
보호된 메서드 MemberwiseClone (Object에서 상속됨)
보호된 메서드 SetHelpContext Sets the help context for the help link.
공용 메서드 ToString (Exception에서 상속됨)

맨 위로 이동

주의

Using the DacException class, you can:

Thread Safety

이 유형의 모든 public static(Microsoft Visual Basic의 경우 공유) 멤버는 다중 스레드 작업을 수행하기에 안전합니다. 인스턴스 멤버는 스레드로부터의 안전성이 보장되지 않습니다.

VC#

try 
{ 
    //Enter DAC code here. 
 
} 
//Catch the DAC exception.
catch (DacException dacex) 
{ 
    System.Console.WriteLine("This is a DAC Exception"); 
   //Display the DAC exception message and type. 
   System.Console.WriteLine(dacex.Message); 
   System.Console.WriteLine(dacex.DacExceptionType); 
} 
   //Catch other non-DAC exceptions. 
catch (Exception ex) 
{ 
   System.Console.WriteLine("This is not a DAC exception."); 
} 

스레드 보안

이 유형의 모든 공용 static(Visual Basic에서는 Shared) 멤버는 스레드로부터 안전합니다. 인스턴스 멤버는 스레드로부터의 안전성이 보장되지 않습니다.