次の方法で共有


TemplatePart.CreateParameter メソッド

定義

パラメーター パーツを TemplatePart 表す を作成します。

public:
 static Microsoft::AspNetCore::Routing::Template::TemplatePart ^ CreateParameter(System::String ^ name, bool isCatchAll, bool isOptional, System::Object ^ defaultValue, System::Collections::Generic::IEnumerable<Microsoft::AspNetCore::Routing::Template::InlineConstraint ^> ^ inlineConstraints);
public static Microsoft.AspNetCore.Routing.Template.TemplatePart CreateParameter (string name, bool isCatchAll, bool isOptional, object defaultValue, System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Routing.Template.InlineConstraint> inlineConstraints);
public static Microsoft.AspNetCore.Routing.Template.TemplatePart CreateParameter (string name, bool isCatchAll, bool isOptional, object? defaultValue, System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Routing.Template.InlineConstraint>? inlineConstraints);
static member CreateParameter : string * bool * bool * obj * seq<Microsoft.AspNetCore.Routing.Template.InlineConstraint> -> Microsoft.AspNetCore.Routing.Template.TemplatePart
Public Shared Function CreateParameter (name As String, isCatchAll As Boolean, isOptional As Boolean, defaultValue As Object, inlineConstraints As IEnumerable(Of InlineConstraint)) As TemplatePart

パラメーター

name
String

パラメーターの名前。

isCatchAll
Boolean

true パラメーターが catch-all パラメーターの場合は 。

isOptional
Boolean

true パラメーターが省略可能なパラメーターの場合は 。

defaultValue
Object

パラメーターの既定値。

inlineConstraints
IEnumerable<InlineConstraint>

パラメーターに関連付けられている制約のコレクション。

戻り値

TemplatePart のインスタンス。

適用対象