Delen via


UrlRedirectActionParameters Constructors

Definition

Overloads

UrlRedirectActionParameters()

Initializes a new instance of the UrlRedirectActionParameters class.

UrlRedirectActionParameters(String, String, String, String, String, String)

Initializes a new instance of the UrlRedirectActionParameters class.

UrlRedirectActionParameters()

Initializes a new instance of the UrlRedirectActionParameters class.

public UrlRedirectActionParameters ();
Public Sub New ()

Applies to

UrlRedirectActionParameters(String, String, String, String, String, String)

Initializes a new instance of the UrlRedirectActionParameters class.

public UrlRedirectActionParameters (string redirectType, string destinationProtocol = default, string customPath = default, string customHostname = default, string customQueryString = default, string customFragment = default);
new Microsoft.Azure.Management.Cdn.Models.UrlRedirectActionParameters : string * string * string * string * string * string -> Microsoft.Azure.Management.Cdn.Models.UrlRedirectActionParameters
Public Sub New (redirectType As String, Optional destinationProtocol As String = Nothing, Optional customPath As String = Nothing, Optional customHostname As String = Nothing, Optional customQueryString As String = Nothing, Optional customFragment As String = Nothing)

Parameters

redirectType
String

The redirect type the rule will use when redirecting traffic. Possible values include: 'Moved', 'Found', 'TemporaryRedirect', 'PermanentRedirect'

destinationProtocol
String

Protocol to use for the redirect. The default value is MatchRequest. Possible values include: 'MatchRequest', 'Http', 'Https'

customPath
String

The full path to redirect. Path cannot be empty and must start with /. Leave empty to use the incoming path as destination path.

customHostname
String

Host to redirect. Leave empty to use the incoming host as the destination host.

customQueryString
String

The set of query strings to be placed in the redirect URL. Setting this value would replace any existing query string; leave empty to preserve the incoming query string. Query string must be in <key>=<value> format. ? and & will be added automatically so do not include them.

customFragment
String

Fragment to add to the redirect URL. Fragment is the part of the URL that comes after #. Do not include the #.

Applies to