Sdílet prostřednictvím


PasswordException Konstruktory

Definice

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

Přetížení

Name Description
PasswordException()

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

PasswordException(String)

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

PasswordException(SerializationInfo, StreamingContext)
Zastaralé.

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

PasswordException(String, Exception)

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

PasswordException()

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

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

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

Poznámky

Konstruktor bez parametrů inicializuje novou instanci PasswordException třídy. Vlastnost Message se inicializuje na zprávu zadanou systémem, která popisuje chybu. Tato zpráva bere v úvahu aktuální systémovou jazykovou verzi. Vlastnost InnerException je inicializována na null.

Platí pro

PasswordException(String)

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

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

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

Parametry

message
String

Text chybové zprávy.

Poznámky

Instance PasswordException se inicializuje s Message vlastností nastavenou na hodnotu message. Pokud message ano null, Message vlastnost je inicializována do zprávy zadané systémem.

Platí pro

PasswordException(SerializationInfo, StreamingContext)

Zdroj:
exceptions.cs
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 PasswordException třídy ze zadaných SerializationInfo a StreamingContext instancí.

protected:
 PasswordException(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 PasswordException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
protected PasswordException(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.PasswordException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.DirectoryServices.AccountManagement.PasswordException
new System.DirectoryServices.AccountManagement.PasswordException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.DirectoryServices.AccountManagement.PasswordException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

Parametry

info
SerializationInfo

A SerializationInfo obsahující informace potřebné k serializaci nového PasswordException.

context
StreamingContext

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

Atributy

Platí pro

PasswordException(String, Exception)

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

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

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

Parametry

message
String

Text chybové zprávy.

innerException
Exception

Vnořená výjimka.

Poznámky

Instance PasswordException je inicializována s Message vlastností nastavenou na hodnotu message a InnerException vlastnost nastavena na hodnotu .innerException Pokud message ano null, Message vlastnost je inicializována do zprávy zadané systémem. Inicializuje se InnerException na null.

Platí pro