ProcessModelSection.ServerErrorMessageFile Własność
Definicja
Ważny
Niektóre informacje dotyczą produktów przedpremierowych, które mogą zostać znacznie zmodyfikowane przed premierą. Microsoft nie udziela żadnych gwarancji, ani wyraźnych, ani domniemanych, dotyczących informacji podanych tutaj.
Pobiera lub ustawia wartość wskazującą plik, którego zawartość musi być używana w przypadku wystąpienia błędu krytycznego.
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
Wartość nieruchomości
Ścieżka pliku używana w przypadku wystąpienia błędu krytycznego.
- Atrybuty
Przykłady
W poniższym przykładzie kodu pokazano, jak używać ServerErrorMessageFile właściwości .
// 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"
Uwagi
Plik, którego zawartość jest używana zamiast domyślnego komunikatu Serwer niedostępny.
Lokalizacja pliku może być względna lub bezwzględna ścieżka pliku.