CustomError.Redirect Eigenschap

Definitie

Hiermee haalt u de omleidings-URL op of stelt u deze in.

public:
 property System::String ^ Redirect { System::String ^ get(); void set(System::String ^ value); };
[System.Configuration.ConfigurationProperty("redirect", IsRequired=true)]
[System.Configuration.StringValidator(MinLength=1)]
public string Redirect { get; set; }
[<System.Configuration.ConfigurationProperty("redirect", IsRequired=true)>]
[<System.Configuration.StringValidator(MinLength=1)>]
member this.Redirect : string with get, set
Public Property Redirect As String

Waarde van eigenschap

De URL waarnaar de toepassing wordt omgeleid wanneer er een fout optreedt.

Kenmerken

Voorbeelden

In het volgende codevoorbeeld ziet u hoe u de omleidings-URL gebruikt. Raadpleeg het codevoorbeeld in het CustomError klasseonderwerp voor meer informatie over het ophalen van de verzameling.

// Get first errorr Redirect.
CustomError currentError0 =
    customErrorsCollection[0];
string currentRedirect =
    currentError0.Redirect;

// Set first error Redirect.
currentError0.Redirect =
    "customError404.htm";
' Get first errorr Redirect.
  Dim currentError0 As CustomError = _
  customErrorsCollection(0)
  Dim currentRedirect As String = _
  currentError0.Redirect

' Set first error Redirect.
currentError0.Redirect = "customError404.htm"

Opmerkingen

De Redirect eigenschap identificeert de URL van de aangepaste pagina die is gekoppeld aan een specifieke fout.

Van toepassing op