Freigeben über


PathTooLongException Konstruktoren

Definition

Initialisiert eine neue Instanz der PathTooLongException-Klasse.

Überlädt

Name Beschreibung
PathTooLongException()

Initialisiert eine neue Instanz der PathTooLongException Klasse mit dem HRESULT-Wert, der auf COR_E_PATHTOOLONG festgelegt ist.

PathTooLongException(String)

Initialisiert eine neue Instanz der PathTooLongException Klasse mit festgelegter message Nachrichtenzeichenfolge und dem HRESULT-Wert auf COR_E_PATHTOOLONG.

PathTooLongException(SerializationInfo, StreamingContext)
Veraltet.

Initialisiert eine neue Instanz der PathTooLongException Klasse mit den angegebenen Serialisierungs- und Kontextinformationen.

PathTooLongException(String, Exception)

Initialisiert eine neue Instanz der PathTooLongException Klasse mit einer angegebenen Fehlermeldung und einem Verweis auf die innere Ausnahme, die die Ursache dieser Ausnahme ist.

PathTooLongException()

Quelle:
PathTooLongException.cs
Quelle:
PathTooLongException.cs
Quelle:
PathTooLongException.cs
Quelle:
PathTooLongException.cs
Quelle:
PathTooLongException.cs

Initialisiert eine neue Instanz der PathTooLongException Klasse mit dem HRESULT-Wert, der auf COR_E_PATHTOOLONG festgelegt ist.

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

Hinweise

Dieser Konstruktor initialisiert die Message Eigenschaft der neuen Instanz in einer vom System bereitgestellten Meldung, die den Fehler beschreibt, z. B. "Der angegebene Pfad ist zu lang". Diese Meldung berücksichtigt die aktuelle Systemkultur.

Weitere Informationen

Gilt für:

PathTooLongException(String)

Quelle:
PathTooLongException.cs
Quelle:
PathTooLongException.cs
Quelle:
PathTooLongException.cs
Quelle:
PathTooLongException.cs
Quelle:
PathTooLongException.cs

Initialisiert eine neue Instanz der PathTooLongException Klasse mit festgelegter message Nachrichtenzeichenfolge und dem HRESULT-Wert auf COR_E_PATHTOOLONG.

public:
 PathTooLongException(System::String ^ message);
public PathTooLongException(string message);
public PathTooLongException(string? message);
new System.IO.PathTooLongException : string -> System.IO.PathTooLongException
Public Sub New (message As String)

Parameter

message
String

Ein String Fehler, der den Fehler beschreibt. Der Inhalt soll message von Menschen verstanden werden. Der Aufrufer dieses Konstruktors ist erforderlich, um sicherzustellen, dass diese Zeichenfolge für die aktuelle Systemkultur lokalisiert wurde.

Hinweise

Dieser Konstruktor initialisiert die Message Eigenschaft der neuen Instanz mithilfe messagevon .

Weitere Informationen

Gilt für:

PathTooLongException(SerializationInfo, StreamingContext)

Quelle:
PathTooLongException.cs
Quelle:
PathTooLongException.cs
Quelle:
PathTooLongException.cs
Quelle:
PathTooLongException.cs
Quelle:
PathTooLongException.cs

Achtung

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

Initialisiert eine neue Instanz der PathTooLongException Klasse mit den angegebenen Serialisierungs- und Kontextinformationen.

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

Parameter

info
SerializationInfo

Das SerializationInfo Objekt enthält die serialisierten Objektdaten zu der Ausnahme, die ausgelöst wird.

context
StreamingContext

Die StreamingContext kontextbezogene Informationen zur Quelle oder zum Ziel.

Attribute

Weitere Informationen

Gilt für:

PathTooLongException(String, Exception)

Quelle:
PathTooLongException.cs
Quelle:
PathTooLongException.cs
Quelle:
PathTooLongException.cs
Quelle:
PathTooLongException.cs
Quelle:
PathTooLongException.cs

Initialisiert eine neue Instanz der PathTooLongException Klasse mit einer angegebenen Fehlermeldung und einem Verweis auf die innere Ausnahme, die die Ursache dieser Ausnahme ist.

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

Parameter

message
String

Ein String Fehler, der den Fehler beschreibt. Der Inhalt soll message von Menschen verstanden werden. Der Aufrufer dieses Konstruktors ist erforderlich, um sicherzustellen, dass diese Zeichenfolge für die aktuelle Systemkultur lokalisiert wurde.

innerException
Exception

Die Ausnahme, die die Ursache der aktuellen Ausnahme ist. Wenn der innerException Parameter nicht nullangegeben ist, wird die aktuelle Ausnahme in einem catch Block ausgelöst, der die innere Ausnahme behandelt.

Hinweise

Eine Ausnahme, die als direktes Ergebnis einer vorherigen Ausnahme ausgelöst wird, sollte einen Verweis auf die vorherige Ausnahme in der InnerException Eigenschaft enthalten. Die InnerException Eigenschaft gibt denselben Wert zurück, der an den Konstruktor übergeben wird, oder null wenn die InnerException Eigenschaft den inneren Ausnahmewert nicht für den Konstruktor angibt.

In der folgenden Tabelle sind die anfänglichen Eigenschaftswerte für eine Instanz von PathTooLongException.

Eigentum Wert
InnerException Der interne Ausnahmeverweis.
Message Die Fehlermeldungszeichenfolge.

Weitere Informationen zu inneren Ausnahmen finden Sie unter InnerException.

Weitere Informationen

Gilt für: