DataServiceConfiguration.RegisterKnownType Method (Type)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Adds a type to the list of types that are recognized by the data service.

Namespace:   System.Data.Services
Assembly:  System.Data.Services (in System.Data.Services.dll)

public void RegisterKnownType(
	Type type
)

Parameters

type
Type: System.Type

Type to add to the collection of known types.

A provider can use the RegisterKnownType method to register a type when it cannot be detected by the runtime by using the default set of rules.

.NET Framework
Available since 3.5
Return to top
Show: