DomainServiceDescription.GetSerializationType Method
[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)
Syntax
'Declaration
Public Function GetSerializationType ( _
type As Type _
) As Type
'Usage
Dim instance As DomainServiceDescription
Dim type As Type
Dim returnValue As Type
returnValue = instance.GetSerializationType(type)
public Type GetSerializationType(
Type type
)
public:
Type^ GetSerializationType(
Type^ type
)
member GetSerializationType :
type:Type -> Type
public function GetSerializationType(
type : Type
) : Type
Parameters
- type
Type: System.Type
The type of the object.
Return Value
Type: System.Type
The corresponding type exposed by the domain service, or nulla null reference (Nothing in Visual Basic) if the specified type is not an entity type.
Remarks
Any serialization or other framework operations operating ontypes should call into this method to get the correct type definition to operate on.