RouteValueProvider 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
RouteValueProvider(BindingSource, RouteValueDictionary) |
建立新的 RouteValueProvider。 |
RouteValueProvider(BindingSource, RouteValueDictionary, CultureInfo) |
建立新的 RouteValueProvider。 |
RouteValueProvider(BindingSource, RouteValueDictionary)
建立新的 RouteValueProvider。
public:
RouteValueProvider(Microsoft::AspNetCore::Mvc::ModelBinding::BindingSource ^ bindingSource, Microsoft::AspNetCore::Routing::RouteValueDictionary ^ values);
public RouteValueProvider (Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource bindingSource, Microsoft.AspNetCore.Routing.RouteValueDictionary values);
new Microsoft.AspNetCore.Mvc.ModelBinding.RouteValueProvider : Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource * Microsoft.AspNetCore.Routing.RouteValueDictionary -> Microsoft.AspNetCore.Mvc.ModelBinding.RouteValueProvider
Public Sub New (bindingSource As BindingSource, values As RouteValueDictionary)
參數
- bindingSource
- BindingSource
BindingSource資料的 。
- values
- RouteValueDictionary
值。
備註
將 Culture 設定為 InvariantCulture。
適用於
RouteValueProvider(BindingSource, RouteValueDictionary, CultureInfo)
建立新的 RouteValueProvider。
public:
RouteValueProvider(Microsoft::AspNetCore::Mvc::ModelBinding::BindingSource ^ bindingSource, Microsoft::AspNetCore::Routing::RouteValueDictionary ^ values, System::Globalization::CultureInfo ^ culture);
public RouteValueProvider (Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource bindingSource, Microsoft.AspNetCore.Routing.RouteValueDictionary values, System.Globalization.CultureInfo culture);
new Microsoft.AspNetCore.Mvc.ModelBinding.RouteValueProvider : Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource * Microsoft.AspNetCore.Routing.RouteValueDictionary * System.Globalization.CultureInfo -> Microsoft.AspNetCore.Mvc.ModelBinding.RouteValueProvider
Public Sub New (bindingSource As BindingSource, values As RouteValueDictionary, culture As CultureInfo)
參數
- bindingSource
- BindingSource
BindingSource資料的 。
- values
- RouteValueDictionary
值。
- culture
- CultureInfo
路由值的文化特性。