This documentation is archived and is not being maintained.

RedirectionType.Resource Property

Gets a RedirectionType that represents the resource redirection type.

Namespace:  System.ServiceModel.Channels
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public static RedirectionType Resource { get; }

Property Value

Type: System.ServiceModel.Channels.RedirectionType
The resource redirection type.

A resource redirection indicates the requested resource has been relocated to the specified location(s). If one location is specified, then this maps to HTTP status code 301 (Moved Permanently) or 307 (Temporary Redirect), depending on the RedirectionDuration selected. If multiple locations are provided, then this maps to the 300 (Multiple Choices) HTTP status code. This is the default value for RedirectionType.

.NET Framework

Supported in: 4

.NET Framework Client Profile

Supported in: 4

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: