共用方式為


ValidateAntiForgeryTokenAttribute.CreateInstance(IServiceProvider) 方法

定義

建立可執行檔篩選的實例。

public:
 virtual Microsoft::AspNetCore::Mvc::Filters::IFilterMetadata ^ CreateInstance(IServiceProvider ^ serviceProvider);
public Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata CreateInstance (IServiceProvider serviceProvider);
abstract member CreateInstance : IServiceProvider -> Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata
override this.CreateInstance : IServiceProvider -> Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata
Public Function CreateInstance (serviceProvider As IServiceProvider) As IFilterMetadata

參數

serviceProvider
IServiceProvider

要求 IServiceProvider

傳回

可執行檔篩選的實例。

實作

適用於