ProcessModelSection.ServerErrorMessageFile Propriedade

Definição

Recebe ou define um valor que indica o ficheiro cujo conteúdo deve ser usado quando ocorre um erro 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

Valor de Propriedade

O caminho do ficheiro utilizado quando ocorre um erro fatal.

Atributos

Exemplos

O seguinte exemplo de código mostra como usar a ServerErrorMessageFile propriedade.


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

Observações

O ficheiro cujo conteúdo é usado em vez da mensagem padrão Server Unavailable.

A localização do ficheiro pode ser um caminho relativo ou absoluto.

Aplica-se a