DataServiceConfiguration.RegisterKnownType Method (Type)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on 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


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