Language

ArmCdnModelFactory.UriRewriteActionProperties Method

Definition

Defines the parameters for the url rewrite action.

public static Azure.ResourceManager.Cdn.Models.UriRewriteActionProperties UriRewriteActionProperties(string sourcePattern = default, string destination = default, bool? preserveUnmatchedPath = default);
static member UriRewriteActionProperties : string * string * Nullable<bool> -> Azure.ResourceManager.Cdn.Models.UriRewriteActionProperties
Public Shared Function UriRewriteActionProperties (Optional sourcePattern As String = Nothing, Optional destination As String = Nothing, Optional preserveUnmatchedPath As Nullable(Of Boolean) = Nothing) As UriRewriteActionProperties

Parameters

sourcePattern
String

define a request URI pattern that identifies the type of requests that may be rewritten. If value is blank, all strings are matched.

destination
String

Define the relative URL to which the above requests will be rewritten by.

preserveUnmatchedPath
Nullable<Boolean>

Whether to preserve unmatched path. Default value is true.

Returns

A new UriRewriteActionProperties instance for mocking.

Applies to