ApiParameterRouteInfo.Constraints 属性

定义

获取或设置 参数的 IRouteConstraint 对象集。

public:
 property System::Collections::Generic::IEnumerable<Microsoft::AspNetCore::Routing::IRouteConstraint ^> ^ Constraints { System::Collections::Generic::IEnumerable<Microsoft::AspNetCore::Routing::IRouteConstraint ^> ^ get(); void set(System::Collections::Generic::IEnumerable<Microsoft::AspNetCore::Routing::IRouteConstraint ^> ^ value); };
public System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Routing.IRouteConstraint> Constraints { get; set; }
public System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Routing.IRouteConstraint>? Constraints { get; set; }
member this.Constraints : seq<Microsoft.AspNetCore.Routing.IRouteConstraint> with get, set
Public Property Constraints As IEnumerable(Of IRouteConstraint)

属性值

注解

仅当值从 URL 的路径绑定时,才应用路由约束。 有关考虑的数据源,请参阅 Source

适用于