CodeDomSerializerBase.GetTargetFrameworkProvider 方法

定义

获取 TypeDescriptionProvider,它可在类型筛选中用来识别 .NET 的目标版本。

protected:
 static System::ComponentModel::TypeDescriptionProvider ^ GetTargetFrameworkProvider(IServiceProvider ^ provider, System::Object ^ instance);
protected static System.ComponentModel.TypeDescriptionProvider GetTargetFrameworkProvider (IServiceProvider provider, object instance);
protected static System.ComponentModel.TypeDescriptionProvider? GetTargetFrameworkProvider (IServiceProvider provider, object instance);
static member GetTargetFrameworkProvider : IServiceProvider * obj -> System.ComponentModel.TypeDescriptionProvider
Protected Shared Function GetTargetFrameworkProvider (provider As IServiceProvider, instance As Object) As TypeDescriptionProvider

参数

provider
IServiceProvider

类型说明提供程序服务。

instance
Object

如果 providernull,则为一个可从中派生类型说明提供程序服务的对象。

返回

.NET 感知类型的说明提供程序。

适用于