ProcessModelSection.ServerErrorMessageFile Properti
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Mendapatkan atau menetapkan nilai yang menunjukkan file yang kontennya harus digunakan ketika terjadi kesalahan fatal.
public:
property System::String ^ ServerErrorMessageFile { System::String ^ get(); void set(System::String ^ value); };
[System.Configuration.ConfigurationProperty("serverErrorMessageFile", DefaultValue="")]
public string ServerErrorMessageFile { get; set; }
[<System.Configuration.ConfigurationProperty("serverErrorMessageFile", DefaultValue="")>]
member this.ServerErrorMessageFile : string with get, set
Public Property ServerErrorMessageFile As String
Nilai Properti
Jalur file yang digunakan ketika terjadi kesalahan fatal.
- Atribut
Contoh
Contoh kode berikut menunjukkan cara menggunakan ServerErrorMessageFile properti .
// Get the current ServerErrorMessageFile property value.
string srvErrMsgFile =
processModelSection.ServerErrorMessageFile;
// Set the ServerErrorMessageFile property to
// "custommessages.log".
processModelSection.ServerErrorMessageFile =
"custommessages.log";
' Get the current ServerErrorMessageFile property value.
Dim srvErrMsgFile As String = _
processModelSection.ServerErrorMessageFile
' Set the ServerErrorMessageFile property to
' "custommessages.log".
processModelSection.ServerErrorMessageFile = _
"custommessages.log"
Keterangan
File yang isinya digunakan alih-alih pesan Server default Tidak Tersedia.
Lokasi file dapat berupa jalur file relatif atau absolut.