FileFormatException Constructors

Definitie

Hiermee maakt u een nieuw exemplaar van de FileFormatException klasse.

Overloads

Name Description
FileFormatException()

Hiermee maakt u een nieuw exemplaar van de FileFormatException klasse.

FileFormatException(String)

Hiermee maakt u een nieuw exemplaar van de FileFormatException klasse met een opgegeven foutbericht.

FileFormatException(Uri)

Hiermee maakt u een nieuw exemplaar van de FileFormatException klasse met een bron-URI-waarde.

FileFormatException(SerializationInfo, StreamingContext)
Verouderd.

Hiermee maakt u een nieuw exemplaar van de FileFormatException klasse en initialiseert u deze met geserialiseerde gegevens. Deze constructor wordt aangeroepen tijdens deserialisatie om het uitzonderingsobject te reconstitueren dat via een stroom wordt verzonden.

FileFormatException(String, Exception)

Hiermee maakt u een nieuw exemplaar van de FileFormatException klasse met een opgegeven foutbericht en uitzonderingstype.

FileFormatException(Uri, Exception)

Hiermee maakt u een nieuw exemplaar van de FileFormatException klasse met een bron-URI-waarde en een uitzonderingstype.

FileFormatException(Uri, String)

Hiermee maakt u een nieuw exemplaar van de FileFormatException klasse met een bron-URI-waarde en een opgegeven foutbericht.

FileFormatException(Uri, String, Exception)

Hiermee maakt u een nieuw exemplaar van de FileFormatException klasse met een bron-URI-waarde, een opgegeven foutbericht en een uitzonderingstype.

FileFormatException()

Bron:
FileFormatException.cs
Bron:
FileFormatException.cs
Bron:
FileFormatException.cs
Bron:
FileFormatException.cs
Bron:
FileFormatException.cs
Bron:
FileFormatException.cs
Bron:
FileFormatException.cs
Bron:
FileFormatException.cs

Hiermee maakt u een nieuw exemplaar van de FileFormatException klasse.

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

Opmerkingen

Deze constructor maakt gebruik van een standaardsysteembericht waarin de fout wordt beschreven, zoals 'Een invoerbestand of een gegevensstroom voldoet niet aan de verwachte bestandsindelingsspecificatie'. Dit bericht houdt rekening met de huidige systeemcultuur.

Van toepassing op

FileFormatException(String)

Bron:
FileFormatException.cs
Bron:
FileFormatException.cs
Bron:
FileFormatException.cs
Bron:
FileFormatException.cs
Bron:
FileFormatException.cs
Bron:
FileFormatException.cs
Bron:
FileFormatException.cs
Bron:
FileFormatException.cs

Hiermee maakt u een nieuw exemplaar van de FileFormatException klasse met een opgegeven foutbericht.

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

Parameters

message
String

Een String waarde die het foutbericht aangeeft.

Van toepassing op

FileFormatException(Uri)

Bron:
FileFormatException.cs
Bron:
FileFormatException.cs
Bron:
FileFormatException.cs
Bron:
FileFormatException.cs
Bron:
FileFormatException.cs
Bron:
FileFormatException.cs
Bron:
FileFormatException.cs
Bron:
FileFormatException.cs

Hiermee maakt u een nieuw exemplaar van de FileFormatException klasse met een bron-URI-waarde.

public:
 FileFormatException(Uri ^ sourceUri);
public FileFormatException(Uri? sourceUri);
public FileFormatException(Uri sourceUri);
new System.IO.FileFormatException : Uri -> System.IO.FileFormatException
Public Sub New (sourceUri As Uri)

Parameters

sourceUri
Uri

De Uri waarde van het bestand dat deze fout heeft veroorzaakt.

Opmerkingen

Deze constructor initialiseert de Message eigenschap van het nieuwe FileFormatException exemplaar in een door het systeem opgegeven bericht dat de fout beschrijft en bevat de bestandsnaam, zoals 'Het bestand 'sourceUri' voldoet niet aan de verwachte bestandsindelingsspecificatie.' Dit bericht houdt rekening met de huidige systeemcultuur.

De SourceUri eigenschap wordt geïnitialiseerd met behulp van de sourceUri parameter.

Van toepassing op

FileFormatException(SerializationInfo, StreamingContext)

Bron:
FileFormatException.cs
Bron:
FileFormatException.cs
Bron:
FileFormatException.cs
Bron:
FileFormatException.cs
Bron:
FileFormatException.cs
Bron:
FileFormatException.cs
Bron:
FileFormatException.cs
Bron:
FileFormatException.cs

Let op

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

Hiermee maakt u een nieuw exemplaar van de FileFormatException klasse en initialiseert u deze met geserialiseerde gegevens. Deze constructor wordt aangeroepen tijdens deserialisatie om het uitzonderingsobject te reconstitueren dat via een stroom wordt verzonden.

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

Parameters

info
SerializationInfo

Het object met de geserialiseerde objectgegevens.

context
StreamingContext

De contextuele informatie over de bron of bestemming.

Kenmerken

Van toepassing op

FileFormatException(String, Exception)

Bron:
FileFormatException.cs
Bron:
FileFormatException.cs
Bron:
FileFormatException.cs
Bron:
FileFormatException.cs
Bron:
FileFormatException.cs
Bron:
FileFormatException.cs
Bron:
FileFormatException.cs
Bron:
FileFormatException.cs

Hiermee maakt u een nieuw exemplaar van de FileFormatException klasse met een opgegeven foutbericht en uitzonderingstype.

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

Parameters

message
String

Een String waarde die het foutbericht aangeeft.

innerException
Exception

De waarde van de InnerException eigenschap, die de oorzaak van de huidige uitzondering vertegenwoordigt.

Opmerkingen

Met deze constructor wordt de Message eigenschap van het nieuwe FileFormatException exemplaar geïnitialiseerd met het opgegeven foutbericht dat wordt vertegenwoordigd door message.

Van toepassing op

FileFormatException(Uri, Exception)

Bron:
FileFormatException.cs
Bron:
FileFormatException.cs
Bron:
FileFormatException.cs
Bron:
FileFormatException.cs
Bron:
FileFormatException.cs
Bron:
FileFormatException.cs
Bron:
FileFormatException.cs
Bron:
FileFormatException.cs

Hiermee maakt u een nieuw exemplaar van de FileFormatException klasse met een bron-URI-waarde en een uitzonderingstype.

public:
 FileFormatException(Uri ^ sourceUri, Exception ^ innerException);
public FileFormatException(Uri? sourceUri, Exception? innerException);
public FileFormatException(Uri sourceUri, Exception innerException);
new System.IO.FileFormatException : Uri * Exception -> System.IO.FileFormatException
Public Sub New (sourceUri As Uri, innerException As Exception)

Parameters

sourceUri
Uri

De Uri waarde van het bestand dat deze fout heeft veroorzaakt.

innerException
Exception

De waarde van de InnerException eigenschap, die de oorzaak van de huidige uitzondering vertegenwoordigt.

Opmerkingen

Met deze constructor wordt de eigenschap Bericht van het nieuwe exemplaar geïnitialiseerd naar een door het systeem opgegeven bericht dat de fout beschrijft en de bestandsnaam bevat, zoals 'Het bestand 'sourceUri' voldoet niet aan de verwachte specificatie van de bestandsindeling.' Dit bericht houdt rekening met de huidige systeemcultuur.

De SourceUri eigenschap wordt geïnitialiseerd met behulp van de sourceUri parameter.

Van toepassing op

FileFormatException(Uri, String)

Bron:
FileFormatException.cs
Bron:
FileFormatException.cs
Bron:
FileFormatException.cs
Bron:
FileFormatException.cs
Bron:
FileFormatException.cs
Bron:
FileFormatException.cs
Bron:
FileFormatException.cs
Bron:
FileFormatException.cs

Hiermee maakt u een nieuw exemplaar van de FileFormatException klasse met een bron-URI-waarde en een opgegeven foutbericht.

public:
 FileFormatException(Uri ^ sourceUri, System::String ^ message);
public FileFormatException(Uri? sourceUri, string? message);
public FileFormatException(Uri sourceUri, string message);
new System.IO.FileFormatException : Uri * string -> System.IO.FileFormatException
Public Sub New (sourceUri As Uri, message As String)

Parameters

sourceUri
Uri

De Uri waarde van het bestand dat deze fout heeft veroorzaakt.

message
String

Een String waarde die het foutbericht aangeeft.

Opmerkingen

Met deze constructor wordt de Message eigenschap van het nieuwe FileFormatException exemplaar geïnitialiseerd met het opgegeven foutbericht dat wordt vertegenwoordigd door message. De aanroeper van deze constructor is vereist om ervoor te zorgen dat deze tekenreeks is gelokaliseerd voor de huidige systeemcultuur.

De SourceUri eigenschap wordt geïnitialiseerd met behulp van de sourceUri parameter.

Van toepassing op

FileFormatException(Uri, String, Exception)

Bron:
FileFormatException.cs
Bron:
FileFormatException.cs
Bron:
FileFormatException.cs
Bron:
FileFormatException.cs
Bron:
FileFormatException.cs
Bron:
FileFormatException.cs
Bron:
FileFormatException.cs
Bron:
FileFormatException.cs

Hiermee maakt u een nieuw exemplaar van de FileFormatException klasse met een bron-URI-waarde, een opgegeven foutbericht en een uitzonderingstype.

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

Parameters

sourceUri
Uri

De Uri waarde van het bestand dat deze fout heeft veroorzaakt.

message
String

Een String waarde die het foutbericht aangeeft.

innerException
Exception

De waarde van de InnerException eigenschap, die de oorzaak van de huidige uitzondering vertegenwoordigt.

Opmerkingen

Met deze constructor wordt de eigenschap Message van het nieuwe exemplaar geïnitialiseerd met behulp van de berichtparameter. De aanroeper van deze constructor is vereist om ervoor te zorgen dat deze tekenreeks is gelokaliseerd voor de huidige systeemcultuur.

De SourceUri eigenschap wordt geïnitialiseerd met behulp van de sourceUri parameter.

Van toepassing op