共用方式為


ConfigurationErrorsException.Filename 屬性

定義

取得導致此組態例外狀況擲回的組態檔之路徑。

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

屬性值

導致此 ConfigurationErrorsException 擲回的組態檔之路徑。

範例

下列程式代碼範例示範如何取得 Filename 屬性值。

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

適用於