DataServiceConfiguration.RegisterKnownType Method (Type)

 

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: