PrincipalServerDownException 构造函数

定义

实例化 PrincipalServerDownException 类的新实例。Instantiates a new instance of the PrincipalServerDownException class.

重载

PrincipalServerDownException()

实例化 PrincipalServerDownException 类的新实例。Instantiates a new instance of the PrincipalServerDownException class.

PrincipalServerDownException(String)

用指定的错误消息实例化 PrincipalServerDownException 类的新实例。Instantiates a new instance of the PrincipalServerDownException class with the specified error message.

PrincipalServerDownException(SerializationInfo, StreamingContext)

根据指定的 SerializationInfoStreamingContext 实例初始化 PrincipalServerDownException 类的新实例。Initializes a new instance of the PrincipalServerDownException class from the specified SerializationInfo and StreamingContext instances.

PrincipalServerDownException(String, Exception)

使用指定的错误消息和指定的嵌套异常实例化 PrincipalServerDownException 类的新实例。Instantiates a new instance of the PrincipalServerDownException class with the specified error message and specified nested exception.

PrincipalServerDownException(String, Int32)

使用指定的错误消息和指定的错误代码实例化 PrincipalServerDownException 类的新实例。Instantiates a new instance of the PrincipalServerDownException class with the specified error message and specified error code.

PrincipalServerDownException(String, Exception, Int32)

使用指定的错误消息、指定的嵌套异常和指定的错误代码实例化 PrincipalServerDownException 类的新实例。Instantiates a new instance of the PrincipalServerDownException class with the specified error message, the specified nested exception, and the specified error code.

PrincipalServerDownException(String, Exception, Int32, String)

使用指定的错误消息、指定的嵌套异常、指定的错误代码和指定的服务器名称实例化 PrincipalServerDownException 类的新实例。Instantiates a new instance of the PrincipalServerDownException class with the specified error message, the specified nested exception, the specified error code, and the specified server name.

PrincipalServerDownException()

实例化 PrincipalServerDownException 类的新实例。Instantiates a new instance of the PrincipalServerDownException class.

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

注解

无参数构造函数初始化类的新实例 PrincipalServerDownExceptionThe parameterless constructor initializes a new instance of the PrincipalServerDownException class. Message 属性初始化为系统提供的描述错误的消息。The Message property is initialized to a system-supplied message that describes the error. 此消息会考虑当前系统区域性。This message takes into account the current system culture. InnerException 属性初始化为 nullThe InnerException property is initialized to null.

适用于

PrincipalServerDownException(String)

用指定的错误消息实例化 PrincipalServerDownException 类的新实例。Instantiates a new instance of the PrincipalServerDownException class with the specified error message.

public:
 PrincipalServerDownException(System::String ^ message);
public PrincipalServerDownException (string message);
new System.DirectoryServices.AccountManagement.PrincipalServerDownException : string -> System.DirectoryServices.AccountManagement.PrincipalServerDownException
Public Sub New (message As String)

参数

message
String

错误信息。An error message.

注解

PrincipalServerDownException初始化实例,并将 Message 属性设置为的值 messageThe PrincipalServerDownException instance is initialized with the Message property set to the value of message. 如果 messagenull ,则将 Message 属性初始化为系统提供的消息。If message is null, the Message property is initialized to a system-supplied message.

适用于

PrincipalServerDownException(SerializationInfo, StreamingContext)

根据指定的 SerializationInfoStreamingContext 实例初始化 PrincipalServerDownException 类的新实例。Initializes a new instance of the PrincipalServerDownException class from the specified SerializationInfo and StreamingContext instances.

protected:
 PrincipalServerDownException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected PrincipalServerDownException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.DirectoryServices.AccountManagement.PrincipalServerDownException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.DirectoryServices.AccountManagement.PrincipalServerDownException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

参数

info
SerializationInfo

一个 SerializationInfo,其中包含序列化新的 PrincipalServerDownException 所需的信息A SerializationInfo that contains the information required to serialize the new PrincipalServerDownException

context
StreamingContext

一个 StreamingContext,其中包含与新的 PrincipalServerDownException 关联的序列化流的源A StreamingContext that contains the source of the serialized stream that is associated with the new PrincipalServerDownException

适用于

PrincipalServerDownException(String, Exception)

使用指定的错误消息和指定的嵌套异常实例化 PrincipalServerDownException 类的新实例。Instantiates a new instance of the PrincipalServerDownException class with the specified error message and specified nested exception.

public:
 PrincipalServerDownException(System::String ^ message, Exception ^ innerException);
public PrincipalServerDownException (string message, Exception innerException);
new System.DirectoryServices.AccountManagement.PrincipalServerDownException : string * Exception -> System.DirectoryServices.AccountManagement.PrincipalServerDownException
Public Sub New (message As String, innerException As Exception)

参数

message
String

消息的文本。The text of the message.

innerException
Exception

嵌套异常。A nested exception.

注解

PrincipalServerDownException初始化实例, Message 并将属性设置为的值 message ,并将 InnerException 属性设置为的值 innerExceptionThe PrincipalServerDownException instance is initialized with the Message property set to the value of message and the InnerException property set to the value of innerException. 如果 messagenull ,则将 Message 属性初始化为系统提供的消息。If message is null, the Message property is initialized to a system-supplied message. InnerException 初始化为 nullThe InnerException is initialized to null.

适用于

PrincipalServerDownException(String, Int32)

使用指定的错误消息和指定的错误代码实例化 PrincipalServerDownException 类的新实例。Instantiates a new instance of the PrincipalServerDownException class with the specified error message and specified error code.

public:
 PrincipalServerDownException(System::String ^ message, int errorCode);
public PrincipalServerDownException (string message, int errorCode);
new System.DirectoryServices.AccountManagement.PrincipalServerDownException : string * int -> System.DirectoryServices.AccountManagement.PrincipalServerDownException
Public Sub New (message As String, errorCode As Integer)

参数

message
String

消息的文本。The text of the message.

errorCode
Int32

错误代码。An error code.

注解

PrincipalServerDownException初始化实例, Message 并将属性设置为的值 message ,并将 ErrorCode 属性设置为的值 errorCodeThe PrincipalServerDownException instance is initialized with the Message property set to the value of message and the ErrorCode property set to the value of errorCode. 如果 messagenull ,则将 Message 属性初始化为系统提供的消息。If message is null, the Message property is initialized to a system-supplied message.

适用于

PrincipalServerDownException(String, Exception, Int32)

使用指定的错误消息、指定的嵌套异常和指定的错误代码实例化 PrincipalServerDownException 类的新实例。Instantiates a new instance of the PrincipalServerDownException class with the specified error message, the specified nested exception, and the specified error code.

public:
 PrincipalServerDownException(System::String ^ message, Exception ^ innerException, int errorCode);
public PrincipalServerDownException (string message, Exception innerException, int errorCode);
new System.DirectoryServices.AccountManagement.PrincipalServerDownException : string * Exception * int -> System.DirectoryServices.AccountManagement.PrincipalServerDownException
Public Sub New (message As String, innerException As Exception, errorCode As Integer)

参数

message
String

错误消息的文本。The text of the error message.

innerException
Exception

嵌套异常。A nested exception.

errorCode
Int32

错误代码。An error code.

注解

PrincipalServerDownException初始化实例, Message 并将属性设置为的值 message ,并将 InnerException 属性设置为的值 innerException ,并将 private errorCode 属性设置为 errorCodeThe PrincipalServerDownException instance is initialized with the Message property set to the value of message and the InnerException property set to the value of innerException, and the private errorCode property is set to errorCode. 如果 messagenull ,则将 Message 属性初始化为系统提供的消息。If message is null, the Message property is initialized to a system-supplied message. InnerException 初始化为 nullThe InnerException is initialized to null.

适用于

PrincipalServerDownException(String, Exception, Int32, String)

使用指定的错误消息、指定的嵌套异常、指定的错误代码和指定的服务器名称实例化 PrincipalServerDownException 类的新实例。Instantiates a new instance of the PrincipalServerDownException class with the specified error message, the specified nested exception, the specified error code, and the specified server name.

public:
 PrincipalServerDownException(System::String ^ message, Exception ^ innerException, int errorCode, System::String ^ serverName);
public PrincipalServerDownException (string message, Exception innerException, int errorCode, string serverName);
new System.DirectoryServices.AccountManagement.PrincipalServerDownException : string * Exception * int * string -> System.DirectoryServices.AccountManagement.PrincipalServerDownException
Public Sub New (message As String, innerException As Exception, errorCode As Integer, serverName As String)

参数

message
String

消息的文本。The text of the message.

innerException
Exception

嵌套异常。A nested exception.

errorCode
Int32

错误代码。An error code.

serverName
String

服务器名称。A server name.

注解

PrincipalServerDownException初始化实例时, Message 属性设置为的值, message InnerException 属性设置为的值 innerException ,private 属性设置为 errorCode errorCode ,而 private serverName 属性设置为 serverNameThe PrincipalServerDownException instance is initialized with the Message property set to the value of message and the InnerException property set to the value of innerException, the private errorCode property is set to errorCode, and the private serverName property is set to serverName. 如果 messagenull ,则将 Message 属性初始化为系统提供的消息。If message is null, the Message property is initialized to a system-supplied message. InnerException 初始化为 nullThe InnerException is initialized to null.

适用于