FileFormatException.SourceUri Egenskap

Definition

Hämtar namnet på en fil som orsakade FileFormatException.

public:
 property Uri ^ SourceUri { Uri ^ get(); };
public Uri? SourceUri { get; }
public Uri SourceUri { get; }
member this.SourceUri : Uri
Public ReadOnly Property SourceUri As Uri

Egenskapsvärde

Uri

En Uri som representerar namnet på filen som orsakade undantaget.

Kommentarer

Om det uppstod ett fel vid hämtningen av namnet på filen som orsakade undantaget är nullreturvärdet , och SourceUri.ToString returnerar en tom sträng.

Gäller för