Sdílet prostřednictvím


ProcessModelSection.ServerErrorMessageFile Vlastnost

Definice

Získá nebo nastaví hodnotu označující soubor, jehož obsah se musí použít při závažné chybě.

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

Hodnota vlastnosti

String

Cesta k souboru použitému v případě závažné chyby.

Atributy

Příklady

Následující příklad kódu ukazuje, jak použít ServerErrorMessageFile vlastnost.


// 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"

Poznámky

Soubor, jehož obsah se používá místo výchozí zprávy Server Není k dispozici.

Umístění souboru může být relativní nebo absolutní cesta k souboru.

Platí pro