ManagementException Konstruktory

Definicja

Inicjuje nowe wystąpienie klasy ManagementException.

Przeciążenia

ManagementException()

Inicjuje nowe wystąpienie klasy ManagementException.

ManagementException(String)

Inicjuje ManagementException nowe wystąpienie klasy z określonym komunikatem o błędzie.

ManagementException(SerializationInfo, StreamingContext)
Przestarzałe.

Inicjuje ManagementException nowe wystąpienie klasy, która można serializować.

ManagementException(String, Exception)

Inicjuje ManagementException puste nowe wystąpienie klasy. innerException Jeśli parametr nie nulljest , bieżący wyjątek jest zgłaszany w bloku catch, który obsługuje wyjątek wewnętrzny.

ManagementException()

Źródło:
ManagementException.cs
Źródło:
ManagementException.cs
Źródło:
ManagementException.cs

Inicjuje nowe wystąpienie klasy ManagementException.

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

Uwagi

Zabezpieczenia.NET Framework

Pełne zaufanie do bezpośredniego wywołującego. Ten element członkowski nie może być używany przez kod częściowo zaufany. Aby uzyskać więcej informacji, zobacz Using Libraries from Partially Trusted Code (Używanie bibliotek z częściowo zaufanego kodu).

Dotyczy

ManagementException(String)

Źródło:
ManagementException.cs
Źródło:
ManagementException.cs
Źródło:
ManagementException.cs

Inicjuje ManagementException nowe wystąpienie klasy z określonym komunikatem o błędzie.

public:
 ManagementException(System::String ^ message);
public ManagementException (string message);
new System.Management.ManagementException : string -> System.Management.ManagementException
Public Sub New (message As String)

Parametry

message
String

Komunikat z opisem błędu.

Dotyczy

ManagementException(SerializationInfo, StreamingContext)

Źródło:
ManagementException.cs
Źródło:
ManagementException.cs
Źródło:
ManagementException.cs

Przestroga

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

Inicjuje ManagementException nowe wystąpienie klasy, która można serializować.

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

Parametry

info
SerializationInfo

Element SerializationInfo do wypełnienia danymi.

context
StreamingContext

Miejsce StreamingContext docelowe tej serializacji.

Atrybuty

Uwagi

Zabezpieczenia.NET Framework

Pełne zaufanie do bezpośredniego wywołującego. Ten element członkowski nie może być używany przez kod częściowo zaufany. Aby uzyskać więcej informacji, zobacz Using Libraries from Partially Trusted Code (Używanie bibliotek z częściowo zaufanego kodu).

Dotyczy

ManagementException(String, Exception)

Źródło:
ManagementException.cs
Źródło:
ManagementException.cs
Źródło:
ManagementException.cs

Inicjuje ManagementException puste nowe wystąpienie klasy. innerException Jeśli parametr nie nulljest , bieżący wyjątek jest zgłaszany w bloku catch, który obsługuje wyjątek wewnętrzny.

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

Parametry

message
String

Komunikat z opisem błędu.

innerException
Exception

Wyjątek będący przyczyną bieżącego wyjątku.

Uwagi

Zabezpieczenia.NET Framework

Pełne zaufanie do bezpośredniego wywołującego. Ten element członkowski nie może być używany przez kod częściowo zaufany. Aby uzyskać więcej informacji, zobacz Using Libraries from Partially Trusted Code (Używanie bibliotek z częściowo zaufanego kodu).

Dotyczy