Share via


NoMatchingPrincipalException 构造函数

定义

实例化 NoMatchingPrincipalException 类的新实例。

重载

NoMatchingPrincipalException()

实例化 NoMatchingPrincipalException 类的新实例。

NoMatchingPrincipalException(String)

用指定的错误消息实例化 NoMatchingPrincipalException 类的新实例。

NoMatchingPrincipalException(SerializationInfo, StreamingContext)
已过时.

根据指定的 SerializationInfoStreamingContext 实例初始化 NoMatchingPrincipalException 类的新实例。

NoMatchingPrincipalException(String, Exception)

使用指定的错误消息和指定的嵌套异常实例化 NoMatchingPrincipalException 类的新实例。

NoMatchingPrincipalException()

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

实例化 NoMatchingPrincipalException 类的新实例。

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

注解

无参数构造函数初始化 类的新实例 NoMatchingPrincipalException 。 属性 Message 初始化为系统提供的消息,用于描述错误。 此消息会考虑当前系统区域性。 将 InnerException 属性初始化为 null

适用于

NoMatchingPrincipalException(String)

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

用指定的错误消息实例化 NoMatchingPrincipalException 类的新实例。

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

错误消息的文本。

注解

实例 NoMatchingPrincipalException 初始化时, Message 属性设置为 的值 message。 如果 messagenull,则 Message 属性初始化为系统提供的消息。

适用于

NoMatchingPrincipalException(SerializationInfo, StreamingContext)

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

注意

This API supports obsolete formatter-based serialization. It should not be called or extended by application code.

根据指定的 SerializationInfoStreamingContext 实例初始化 NoMatchingPrincipalException 类的新实例。

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}")]
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
[<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
Protected Sub New (info As SerializationInfo, context As StreamingContext)

参数

info
SerializationInfo

SerializationInfo,包含序列化新的 NoMatchingPrincipalException 所需的信息。

context
StreamingContext

StreamingContext,它包含与新的 NoMatchingPrincipalException 关联的序列化流的源。

属性

适用于

NoMatchingPrincipalException(String, Exception)

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

使用指定的错误消息和指定的嵌套异常实例化 NoMatchingPrincipalException 类的新实例。

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

消息的文本。

innerException
Exception

嵌套异常。

注解

实例 NoMatchingPrincipalException 初始化时, Message 将 属性设置为 的值 message ,将 InnerException 属性设置为 的值 innerException。 如果 messagenull,则 Message 属性初始化为系统提供的消息。 初始化 InnerExceptionnull

适用于