DataServiceConfiguration.RegisterKnownType Method
Adds a type to the list of types that are recognized by the data service.
Namespace: System.Data.Services
Assembly: Microsoft.Data.Services (in Microsoft.Data.Services.dll)
Syntax
'Declaration
Public Sub RegisterKnownType ( _
type As Type _
)
'Usage
Dim instance As DataServiceConfiguration
Dim type As Type
instance.RegisterKnownType(type)
public void RegisterKnownType(
Type type
)
public:
virtual void RegisterKnownType(
Type^ type
) sealed
abstract RegisterKnownType :
type:Type -> unit
override RegisterKnownType :
type:Type -> unit
public final function RegisterKnownType(
type : Type
)
Parameters
- type
Type: System.Type
The type to add to the collection of known types.
Implements
IDataServiceConfiguration.RegisterKnownType(Type)
Remarks
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.
See Also
Reference
DataServiceConfiguration Class
System.Data.Services Namespace