MultipleMatchesException 构造函数

定义

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

重载

MultipleMatchesException()

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

MultipleMatchesException(String)

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

MultipleMatchesException(SerializationInfo, StreamingContext)

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

MultipleMatchesException(String, Exception)

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

MultipleMatchesException()

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

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

注解

无参数构造函数初始化MultipleMatchesException类的新实例。The parameterless constructor initializes a new instance of the MultipleMatchesException 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. 将初始化为nullInnerExceptionThe InnerException is initialized to null.

MultipleMatchesException(String)

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

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

参数

message
String

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

注解

初始化实例, Message并将属性设置为的message值。 MultipleMatchesExceptionThe MultipleMatchesException 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.

MultipleMatchesException(SerializationInfo, StreamingContext)

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

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

参数

info
SerializationInfo

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

context
StreamingContext

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

MultipleMatchesException(String, Exception)

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

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

参数

message
String

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

innerException
Exception

嵌套异常。A nested exception.

注解

message InnerException初始化MultipleMatchesException 实例,innerException并将属性设置为的值, 并将属性设置为的值。 MessageThe MultipleMatchesException 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.

适用于