Sdílet prostřednictvím


NoMatchingPrincipalException Konstruktory

Definice

Vytvoří instanci nové instance NoMatchingPrincipalException třídy.

Přetížení

NoMatchingPrincipalException()

Vytvoří instanci nové instance NoMatchingPrincipalException třídy.

NoMatchingPrincipalException(String)

Vytvoří instanci nové instance NoMatchingPrincipalException třídy se zadanou chybovou zprávou.

NoMatchingPrincipalException(SerializationInfo, StreamingContext)
Zastaralé.

Inicializuje novou instanci NoMatchingPrincipalException třídy ze zadaných SerializationInfo a StreamingContext instancí.

NoMatchingPrincipalException(String, Exception)

Vytvoří instanci nové instance NoMatchingPrincipalException třídy se zadanou chybovou zprávou a zadanou vnořenou výjimkou.

NoMatchingPrincipalException()

Zdroj:
exceptions.cs
Zdroj:
exceptions.cs
Zdroj:
exceptions.cs

Vytvoří instanci nové instance NoMatchingPrincipalException třídy.

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

Poznámky

Konstruktor bez parametrů inicializuje novou instanci NoMatchingPrincipalException třídy. Vlastnost Message je inicializována na systémovou zprávu, která popisuje chybu. Tato zpráva bere v potaz aktuální systémovou kulturu. Vlastnost InnerException je inicializována na null.

Platí pro

NoMatchingPrincipalException(String)

Zdroj:
exceptions.cs
Zdroj:
exceptions.cs
Zdroj:
exceptions.cs

Vytvoří instanci nové instance NoMatchingPrincipalException třídy se zadanou chybovou zprávou.

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)

Parametry

message
String

Text chybové zprávy.

Poznámky

Instance NoMatchingPrincipalException se inicializuje s Message vlastností nastavenou na hodnotu message. Pokud message je null, Message vlastnost se inicializuje na zprávu dodanou systémem.

Platí pro

NoMatchingPrincipalException(SerializationInfo, StreamingContext)

Zdroj:
exceptions.cs
Zdroj:
exceptions.cs
Zdroj:
exceptions.cs

Upozornění

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

Inicializuje novou instanci NoMatchingPrincipalException třídy ze zadaných SerializationInfo a StreamingContext instancí.

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)

Parametry

info
SerializationInfo

A SerializationInfo , který obsahuje informace potřebné k serializaci nové NoMatchingPrincipalException.

context
StreamingContext

A StreamingContext , který obsahuje zdroj serializovaného datového proudu, který je přidružen k novému NoMatchingPrincipalException.

Atributy

Platí pro

NoMatchingPrincipalException(String, Exception)

Zdroj:
exceptions.cs
Zdroj:
exceptions.cs
Zdroj:
exceptions.cs

Vytvoří instanci nové instance NoMatchingPrincipalException třídy se zadanou chybovou zprávou a zadanou vnořenou výjimkou.

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)

Parametry

message
String

Text zprávy.

innerException
Exception

Vnořená výjimka.

Poznámky

Instance NoMatchingPrincipalException se inicializuje s Message vlastností nastavenou na hodnotu message a InnerException vlastnost nastavenou na hodnotu innerException. Pokud message je null, Message vlastnost se inicializuje na zprávu dodanou systémem. Inicializuje InnerException se na null.

Platí pro