DomainServiceDescription.GetSerializationType Method

WCF RIA Services

[WCF RIA Services Version 1 Service Pack 2 is compatible with either .NET framework 4 or .NET Framework 4.5, and with either Silverlight 4 or Silverlight 5.]

Returns the corresponding type exposed by the domain service, while accounting for inheritance.

Namespace:  System.ServiceModel.DomainServices.Server
Assembly:  System.ServiceModel.DomainServices.Server (in System.ServiceModel.DomainServices.Server.dll)

public Type GetSerializationType(
	Type type


Type: System.Type
The type of the object.

Return Value

Type: System.Type
The corresponding type exposed by the domain service, or null if the specified type is not an entity type.

Any serialization or other framework operations operating ontypes should call into this method to get the correct type definition to operate on.