DomainServiceDescription.GetRootEntityType 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 root type for the specified entity type.
Namespace: System.ServiceModel.DomainServices.Server
Assembly: System.ServiceModel.DomainServices.Server (in System.ServiceModel.DomainServices.Server.dll)
Syntax
'Declaration
Public Function GetRootEntityType ( _
entityType As Type _
) As Type
'Usage
Dim instance As DomainServiceDescription
Dim entityType As Type
Dim returnValue As Type
returnValue = instance.GetRootEntityType(entityType)
public Type GetRootEntityType(
Type entityType
)
public:
Type^ GetRootEntityType(
Type^ entityType
)
member GetRootEntityType :
entityType:Type -> Type
public function GetRootEntityType(
entityType : Type
) : Type
Parameters
- entityType
Type: System.Type
The entity type whose root is required.
Return Value
Type: System.Type
The type of the root or nulla null reference (Nothing in Visual Basic) if the given entityType has no base types.
Remarks
The returned root type is the least derived entity type of the entity type hierarchy that is exposed through a domain service.