Redigera

Dela via


NoMatchingPrincipalException Constructors

Definition

Instantiates a new instance of the NoMatchingPrincipalException class.

Overloads

NoMatchingPrincipalException()

Instantiates a new instance of the NoMatchingPrincipalException class.

NoMatchingPrincipalException(String)

Instantiates a new instance of the NoMatchingPrincipalException class with the specified error message.

NoMatchingPrincipalException(SerializationInfo, StreamingContext)
Obsolete.

Initializes a new instance of the NoMatchingPrincipalException class from the specified SerializationInfo and StreamingContext instances.

NoMatchingPrincipalException(String, Exception)

Instantiates a new instance of the NoMatchingPrincipalException class with the specified error message and specified nested exception.

NoMatchingPrincipalException()

Source:
exceptions.cs
Source:
exceptions.cs
Source:
exceptions.cs

Instantiates a new instance of the NoMatchingPrincipalException class.

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

Remarks

The parameterless constructor initializes a new instance of the NoMatchingPrincipalException 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 property is initialized to null.

Applies to

NoMatchingPrincipalException(String)

Source:
exceptions.cs
Source:
exceptions.cs
Source:
exceptions.cs

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)

Parameters

message
String

The text of the error message.

Remarks

The NoMatchingPrincipalException 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

NoMatchingPrincipalException(SerializationInfo, StreamingContext)

Source:
exceptions.cs
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 NoMatchingPrincipalException class from the specified SerializationInfo and StreamingContext instances.

protected:
 NoMatchingPrincipalException(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 NoMatchingPrincipalException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
protected NoMatchingPrincipalException (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}")>]
new System.DirectoryServices.AccountManagement.NoMatchingPrincipalException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.DirectoryServices.AccountManagement.NoMatchingPrincipalException
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)

Parameters

info
SerializationInfo

A SerializationInfo that contains the information required to serialize the new NoMatchingPrincipalException.

context
StreamingContext

A StreamingContext that contains the source of the serialized stream that is associated with the new NoMatchingPrincipalException.

Attributes

Applies to

NoMatchingPrincipalException(String, Exception)

Source:
exceptions.cs
Source:
exceptions.cs
Source:
exceptions.cs

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)

Parameters

message
String

The text of the message.

innerException
Exception

A nested exception.

Remarks

The NoMatchingPrincipalException 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