共用方式為


IActionConstraintFactory.CreateInstance(IServiceProvider) 方法

定義

建立新的 IActionConstraint

public:
 Microsoft::AspNetCore::Mvc::ActionConstraints::IActionConstraint ^ CreateInstance(IServiceProvider ^ services);
public Microsoft.AspNetCore.Mvc.ActionConstraints.IActionConstraint CreateInstance (IServiceProvider services);
abstract member CreateInstance : IServiceProvider -> Microsoft.AspNetCore.Mvc.ActionConstraints.IActionConstraint
Public Function CreateInstance (services As IServiceProvider) As IActionConstraint

參數

services
IServiceProvider

每個要求服務。

傳回

IActionConstraint

適用於