다음을 통해 공유


PasswordExpiredException 생성자 (String, Exception)

Initializes a new instance of the PasswordExpiredException class with a specified error message and a reference to the inner exception that is the cause of this exception.

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

구문

‘선언
Public Sub New ( _
    message As String, _
    previous As Exception _
)
‘사용 방법
Dim message As String 
Dim previous As Exception 

Dim instance As New PasswordExpiredException(message, _
    previous)
public PasswordExpiredException(
    string message,
    Exception previous
)
public:
PasswordExpiredException(
    String^ message, 
    Exception^ previous
)
new : 
        message:string * 
        previous:Exception -> PasswordExpiredException
public function PasswordExpiredException(
    message : String, 
    previous : Exception
)

매개 변수

  • message
    유형: System.String
    The message that describes the exception. The caller of this constructor is required to ensure that this string has been localized for the current system culture.
  • previous
    유형: System.Exception
    The exception that is the cause of the current exception. If the innerException parameter is not nullnull 참조(Visual Basic에서는 Nothing), the current exception is raised in a catch block that handles the inner exception.

주의

An exception that is thrown as a direct result of a previous exception should include a reference to the previous exception in the InnerException property. The InnerException property returns the same value that is passed into the constructor, or nullnull 참조(Visual Basic에서는 Nothing) if the InnerException property does not supply the inner exception value to the constructor.

The following table shows the initial property values for an instance of PasswordExpiredException.

Property

Value

InnerException

nullnull 참조(Visual Basic에서는 Nothing).

Message

The error message string specified in message.

참고 항목

참조

PasswordExpiredException 클래스

PasswordExpiredException 오버로드

Microsoft.SqlServer.Management.UI.ConnectionDlg 네임스페이스

관련 자료

Handling and Throwing Exceptions