RoutePatternFactory.ParameterPart Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
ParameterPart(String) |
Creates a RoutePatternParameterPart from the provided parameter name. |
ParameterPart(String, Object) |
Creates a RoutePatternParameterPart from the provided parameter name and default value. |
ParameterPart(String, Object, RoutePatternParameterKind) |
Creates a RoutePatternParameterPart from the provided parameter name and default value, and parameter kind. |
ParameterPart(String, Object, RoutePatternParameterKind, RoutePatternParameterPolicyReference[]) |
Creates a RoutePatternParameterPart from the provided parameter name and default value, parameter kind, and parameter policies. |
ParameterPart(String, Object, RoutePatternParameterKind, IEnumerable<RoutePatternParameterPolicyReference>) |
Creates a RoutePatternParameterPart from the provided parameter name and default value, parameter kind, and parameter policies. |
ParameterPart(String)
- Source:
- RoutePatternFactory.cs
- Source:
- RoutePatternFactory.cs
Creates a RoutePatternParameterPart from the provided parameter name.
public:
static Microsoft::AspNetCore::Routing::Patterns::RoutePatternParameterPart ^ ParameterPart(System::String ^ parameterName);
public static Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPart ParameterPart (string parameterName);
static member ParameterPart : string -> Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPart
Public Shared Function ParameterPart (parameterName As String) As RoutePatternParameterPart
Parameters
- parameterName
- String
The parameter name.
Returns
The RoutePatternParameterPart.
Applies to
ParameterPart(String, Object)
- Source:
- RoutePatternFactory.cs
- Source:
- RoutePatternFactory.cs
Creates a RoutePatternParameterPart from the provided parameter name and default value.
public:
static Microsoft::AspNetCore::Routing::Patterns::RoutePatternParameterPart ^ ParameterPart(System::String ^ parameterName, System::Object ^ default);
public static Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPart ParameterPart (string parameterName, object default);
static member ParameterPart : string * obj -> Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPart
Public Shared Function ParameterPart (parameterName As String, default As Object) As RoutePatternParameterPart
Parameters
- parameterName
- String
The parameter name.
- default
- Object
The parameter default value. May be null
.
Returns
The RoutePatternParameterPart.
Applies to
ParameterPart(String, Object, RoutePatternParameterKind)
- Source:
- RoutePatternFactory.cs
- Source:
- RoutePatternFactory.cs
Creates a RoutePatternParameterPart from the provided parameter name and default value, and parameter kind.
public:
static Microsoft::AspNetCore::Routing::Patterns::RoutePatternParameterPart ^ ParameterPart(System::String ^ parameterName, System::Object ^ default, Microsoft::AspNetCore::Routing::Patterns::RoutePatternParameterKind parameterKind);
public static Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPart ParameterPart (string parameterName, object default, Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterKind parameterKind);
public static Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPart ParameterPart (string parameterName, object? default, Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterKind parameterKind);
static member ParameterPart : string * obj * Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterKind -> Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPart
Public Shared Function ParameterPart (parameterName As String, default As Object, parameterKind As RoutePatternParameterKind) As RoutePatternParameterPart
Parameters
- parameterName
- String
The parameter name.
- default
- Object
The parameter default value. May be null
.
- parameterKind
- RoutePatternParameterKind
The parameter kind.
Returns
The RoutePatternParameterPart.
Applies to
ParameterPart(String, Object, RoutePatternParameterKind, RoutePatternParameterPolicyReference[])
- Source:
- RoutePatternFactory.cs
- Source:
- RoutePatternFactory.cs
Creates a RoutePatternParameterPart from the provided parameter name and default value, parameter kind, and parameter policies.
public:
static Microsoft::AspNetCore::Routing::Patterns::RoutePatternParameterPart ^ ParameterPart(System::String ^ parameterName, System::Object ^ default, Microsoft::AspNetCore::Routing::Patterns::RoutePatternParameterKind parameterKind, ... cli::array <Microsoft::AspNetCore::Routing::Patterns::RoutePatternParameterPolicyReference ^> ^ parameterPolicies);
public static Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPart ParameterPart (string parameterName, object default, Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterKind parameterKind, params Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPolicyReference[] parameterPolicies);
public static Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPart ParameterPart (string parameterName, object? default, Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterKind parameterKind, params Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPolicyReference[] parameterPolicies);
static member ParameterPart : string * obj * Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterKind * Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPolicyReference[] -> Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPart
Public Shared Function ParameterPart (parameterName As String, default As Object, parameterKind As RoutePatternParameterKind, ParamArray parameterPolicies As RoutePatternParameterPolicyReference()) As RoutePatternParameterPart
Parameters
- parameterName
- String
The parameter name.
- default
- Object
The parameter default value. May be null
.
- parameterKind
- RoutePatternParameterKind
The parameter kind.
- parameterPolicies
- RoutePatternParameterPolicyReference[]
The parameter policies to associated with the parameter.
Returns
The RoutePatternParameterPart.
Applies to
ParameterPart(String, Object, RoutePatternParameterKind, IEnumerable<RoutePatternParameterPolicyReference>)
- Source:
- RoutePatternFactory.cs
- Source:
- RoutePatternFactory.cs
Creates a RoutePatternParameterPart from the provided parameter name and default value, parameter kind, and parameter policies.
public:
static Microsoft::AspNetCore::Routing::Patterns::RoutePatternParameterPart ^ ParameterPart(System::String ^ parameterName, System::Object ^ default, Microsoft::AspNetCore::Routing::Patterns::RoutePatternParameterKind parameterKind, System::Collections::Generic::IEnumerable<Microsoft::AspNetCore::Routing::Patterns::RoutePatternParameterPolicyReference ^> ^ parameterPolicies);
public static Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPart ParameterPart (string parameterName, object default, Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterKind parameterKind, System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPolicyReference> parameterPolicies);
public static Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPart ParameterPart (string parameterName, object? default, Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterKind parameterKind, System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPolicyReference> parameterPolicies);
static member ParameterPart : string * obj * Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterKind * seq<Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPolicyReference> -> Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPart
Public Shared Function ParameterPart (parameterName As String, default As Object, parameterKind As RoutePatternParameterKind, parameterPolicies As IEnumerable(Of RoutePatternParameterPolicyReference)) As RoutePatternParameterPart
Parameters
- parameterName
- String
The parameter name.
- default
- Object
The parameter default value. May be null
.
- parameterKind
- RoutePatternParameterKind
The parameter kind.
- parameterPolicies
- IEnumerable<RoutePatternParameterPolicyReference>
The parameter policies to associated with the parameter.
Returns
The RoutePatternParameterPart.