TemplatePart Class¶
- Namespace
Microsoft.AspNetCore.Routing.Template- Assemblies
- Microsoft.AspNetCore.Routing
Syntax¶
[DebuggerDisplay("{DebuggerToString()}")]
public class TemplatePart
-
class
Microsoft.AspNetCore.Routing.Template.TemplatePart
Methods¶
-
CreateLiteral(System.String)¶ Return type: Microsoft.AspNetCore.Routing.Template.TemplatePart public static TemplatePart CreateLiteral(string text)
-
CreateParameter(System.String, System.Boolean, System.Boolean, System.Object, System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Routing.Template.InlineConstraint>)¶ Return type: Microsoft.AspNetCore.Routing.Template.TemplatePart public static TemplatePart CreateParameter(string name, bool isCatchAll, bool isOptional, object defaultValue, IEnumerable<InlineConstraint> inlineConstraints)
-
Properties¶
-
Microsoft.AspNetCore.Routing.Template.TemplatePart.DefaultValue¶ Return type: System.Object public object DefaultValue { get; }
-
Microsoft.AspNetCore.Routing.Template.TemplatePart.InlineConstraints¶ Return type: System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Routing.Template.InlineConstraint> public IEnumerable<InlineConstraint> InlineConstraints { get; }
-
Microsoft.AspNetCore.Routing.Template.TemplatePart.IsCatchAll¶ Return type: System.Boolean public bool IsCatchAll { get; }
-
Microsoft.AspNetCore.Routing.Template.TemplatePart.IsLiteral¶ Return type: System.Boolean public bool IsLiteral { get; }
-
Microsoft.AspNetCore.Routing.Template.TemplatePart.IsOptional¶ Return type: System.Boolean public bool IsOptional { get; }
-
Microsoft.AspNetCore.Routing.Template.TemplatePart.IsOptionalSeperator¶ Return type: System.Boolean public bool IsOptionalSeperator { get; set; }
-
Microsoft.AspNetCore.Routing.Template.TemplatePart.IsParameter¶ Return type: System.Boolean public bool IsParameter { get; }
-
Microsoft.AspNetCore.Routing.Template.TemplatePart.Name¶ Return type: System.String public string Name { get; }
-
Microsoft.AspNetCore.Routing.Template.TemplatePart.Text¶ Return type: System.String public string Text { get; }
-