共用方式為


DesignTimeResourceProviderFactory.CreateDesignTimeGlobalResourceProvider 方法

定義

在衍生類別中覆寫時,使用提供的 IServiceProvider 介面和資源類別名稱建立全域資源提供者。

public:
 abstract System::Web::Compilation::IResourceProvider ^ CreateDesignTimeGlobalResourceProvider(IServiceProvider ^ serviceProvider, System::String ^ classKey);
public abstract System.Web.Compilation.IResourceProvider CreateDesignTimeGlobalResourceProvider (IServiceProvider serviceProvider, string classKey);
abstract member CreateDesignTimeGlobalResourceProvider : IServiceProvider * string -> System.Web.Compilation.IResourceProvider
Public MustOverride Function CreateDesignTimeGlobalResourceProvider (serviceProvider As IServiceProvider, classKey As String) As IResourceProvider

參數

serviceProvider
IServiceProvider

設計主應用程式的參考。

classKey
String

資源類別的名稱。

傳回

IResourceProviderIDesignTimeResourceWriter

適用於

另請參閱