ActionConstraintItem Class

Represents an Microsoft.AspNetCore.Mvc.ActionConstraints.IActionConstraintMetadata with or without a corresponding Microsoft.AspNetCore.Mvc.ActionConstraints.IActionConstraint.

Namespace
Microsoft.AspNetCore.Mvc.ActionConstraints
Assemblies
  • Microsoft.AspNetCore.Mvc.Abstractions

Syntax

public class ActionConstraintItem
class Microsoft.AspNetCore.Mvc.ActionConstraints.ActionConstraintItem

Constructors

ActionConstraintItem(Microsoft.AspNetCore.Mvc.ActionConstraints.IActionConstraintMetadata)

Creates a new Microsoft.AspNetCore.Mvc.ActionConstraints.ActionConstraintItem.

Arguments:metadata (Microsoft.AspNetCore.Mvc.ActionConstraints.IActionConstraintMetadata) – The Microsoft.AspNetCore.Mvc.ActionConstraints.IActionConstraintMetadata instance.
public ActionConstraintItem(IActionConstraintMetadata metadata)

Properties

Microsoft.AspNetCore.Mvc.ActionConstraints.ActionConstraintItem.Constraint

The Microsoft.AspNetCore.Mvc.ActionConstraints.IActionConstraint associated with Microsoft.AspNetCore.Mvc.ActionConstraints.ActionConstraintItem.Metadata.

Return type:Microsoft.AspNetCore.Mvc.ActionConstraints.IActionConstraint
public IActionConstraint Constraint { get; set; }
Microsoft.AspNetCore.Mvc.ActionConstraints.ActionConstraintItem.IsReusable

Gets or sets a value indicating whether or not Microsoft.AspNetCore.Mvc.ActionConstraints.ActionConstraintItem.Constraint can be reused across requests.

Return type:System.Boolean
public bool IsReusable { get; set; }
Microsoft.AspNetCore.Mvc.ActionConstraints.ActionConstraintItem.Metadata

The Microsoft.AspNetCore.Mvc.ActionConstraints.IActionConstraintMetadata instance.

Return type:Microsoft.AspNetCore.Mvc.ActionConstraints.IActionConstraintMetadata
public IActionConstraintMetadata Metadata { get; }