DomainServiceDescription.GetEntityBaseType 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.]

Gets the base type of the specified entity type.

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

Syntax

'Declaration
Public Function GetEntityBaseType ( _
    entityType As Type _
) As Type
'Usage
Dim instance As DomainServiceDescription
Dim entityType As Type
Dim returnValue As Type

returnValue = instance.GetEntityBaseType(entityType)
public Type GetEntityBaseType(
    Type entityType
)
public:
Type^ GetEntityBaseType(
    Type^ entityType
)
member GetEntityBaseType : 
        entityType:Type -> Type 
public function GetEntityBaseType(
    entityType : Type
) : Type

Parameters

  • entityType
    Type: System.Type
    The entity type whose base type is required.

Return Value

Type: System.Type
The base type or nulla null reference (Nothing in Visual Basic) if the specified entityType has no visible base types.

Remarks

The returned base type is the closest base type of the specified entity type that is exposed by the domain service. The entity hierarchy may contain types that are not exposed, and this method skips those types.

See Also

Reference

DomainServiceDescription Class

System.ServiceModel.DomainServices.Server Namespace