ConfigurationErrorsException.Filename Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Property Value
The path to the configuration file that caused this ConfigurationErrorsException to be thrown.
Examples
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)
Applies to
التعاون معنا على GitHub
يمكن العثور على مصدر هذا المحتوى على GitHub حيث يمكنك أيضاً إضافة مشاكل وطلبات سحب ومراجعتها. للحصول على معلومات إضافية، اطلع على دليل المساهم لدينا.