ConfigurationErrorsException.Filename ConfigurationErrorsException.Filename ConfigurationErrorsException.Filename ConfigurationErrorsException.Filename Property

Definition

Ruft den Pfad zu der Konfigurationsdatei ab, die das Auslösen dieser Konfigurationsausnahme verursacht hat.Gets the path to the configuration file that caused this configuration exception to be thrown.

public:
 virtual property System::String ^ Filename { System::String ^ get(); };
public override string Filename { get; }
member this.Filename : string
Public Overrides ReadOnly Property Filename As String

Eigenschaftswert

Der Pfad zu der Konfigurationsdatei, die das Auslösen dieser ConfigurationErrorsException verursacht hat.The path to the configuration file that caused this ConfigurationErrorsException to be thrown.

Beispiele

Im folgenden Codebeispiel wird veranschaulicht, wie zum Abrufen der Filename -Eigenschaftswert.The following code example shows how to get the Filename property value.

string fileName = err.Filename;
Console.WriteLine("Filename: {0}", fileName);
Dim fileName As String = err.Filename
Console.WriteLine("Filename: {0}", _
fileName)

Gilt für: