NoMatchingPrincipalException 构造函数

定义

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

重载

NoMatchingPrincipalException()

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

NoMatchingPrincipalException(String)

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

NoMatchingPrincipalException(SerializationInfo, StreamingContext)

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

NoMatchingPrincipalException(String, Exception)

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

NoMatchingPrincipalException()

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

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

注解

无参数构造函数初始化NoMatchingPrincipalException类的新实例。The parameterless constructor initializes a new instance of the NoMatchingPrincipalException 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.

NoMatchingPrincipalException(String)

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

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

参数

message
String

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

注解

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

NoMatchingPrincipalException(SerializationInfo, StreamingContext)

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

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

参数

info
SerializationInfo

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

context
StreamingContext

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

NoMatchingPrincipalException(String, Exception)

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

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

参数

message
String

消息的文本The text of the message

innerException
Exception

嵌套异常。A nested exception.

注解

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

适用于