MultipleMatchesException Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Instantiates a new instance of the MultipleMatchesException class.
Overloads
MultipleMatchesException() |
Instantiates a new instance of the MultipleMatchesException class. |
MultipleMatchesException(String) |
Instantiates a new instance of the MultipleMatchesException class with the specified error message. |
MultipleMatchesException(SerializationInfo, StreamingContext) |
Obsolete.
Initializes a new instance of the MultipleMatchesException class from the specified SerializationInfo and StreamingContext instances. |
MultipleMatchesException(String, Exception) |
Instantiates a new instance of the MultipleMatchesException class with the specified error message and specified nested exception. |
MultipleMatchesException()
- Source:
- exceptions.cs
- Source:
- exceptions.cs
Instantiates a new instance of the MultipleMatchesException class.
public:
MultipleMatchesException();
public MultipleMatchesException ();
Public Sub New ()
Remarks
The parameterless constructor initializes a new instance of the MultipleMatchesException class. The Message property is initialized to a system-supplied message that describes the error. This message takes into account the current system culture. The InnerException is initialized to null
.
Applies to
MultipleMatchesException(String)
- Source:
- exceptions.cs
- Source:
- exceptions.cs
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)
Parameters
- message
- String
The text of the error message.
Remarks
The MultipleMatchesException instance is initialized with the Message property set to the value of message
. If message
is null
, the Message property is initialized to a system-supplied message.
Applies to
MultipleMatchesException(SerializationInfo, StreamingContext)
- Source:
- exceptions.cs
- Source:
- exceptions.cs
Caution
This API supports obsolete formatter-based serialization. It should not be called or extended by application code.
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);
[System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
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
[<System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
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)
Parameters
- info
- SerializationInfo
A SerializationInfo that contains the information required to serialize the new MultipleMatchesException.
- context
- StreamingContext
A StreamingContext that contains the source of the serialized stream that is associated with the new MultipleMatchesException.
- Attributes
Applies to
MultipleMatchesException(String, Exception)
- Source:
- exceptions.cs
- Source:
- exceptions.cs
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)
Parameters
- message
- String
The text of the error message.
- innerException
- Exception
A nested exception.
Remarks
The MultipleMatchesException instance is initialized with the Message property set to the value of message
and the InnerException property set to the value of innerException
. If message
is null
, the Message property is initialized to a system-supplied message. The InnerException is initialized to null
.
Applies to
.NET