CodeDomSerializerBase.GetTargetFrameworkProvider Method

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Gets a TypeDescriptionProvider that is aware of the target version of .NET, for use in type filtering.

C#
protected static System.ComponentModel.TypeDescriptionProvider GetTargetFrameworkProvider(IServiceProvider provider, object instance);
C#
protected static System.ComponentModel.TypeDescriptionProvider? GetTargetFrameworkProvider(IServiceProvider provider, object instance);

Parameters

provider
IServiceProvider

The type description provider service.

instance
Object

An object from which the type description provider service can be derived, if provider is null.

Returns

A .NET-aware type description provider.

Applies to

Product Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10