ApiParameterRouteInfo.Constraints 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定 參數的 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 。