IDataServiceMetadataProvider.GetDerivedTypes Method
Attempts to return all types that derive from the specified resource type.
Namespace: System.Data.Services.Providers
Assembly: Microsoft.Data.Services (in Microsoft.Data.Services.dll)
Syntax
'Declaration
Function GetDerivedTypes ( _
resourceType As ResourceType _
) As IEnumerable(Of ResourceType)
'Usage
Dim instance As IDataServiceMetadataProvider
Dim resourceType As ResourceType
Dim returnValue As IEnumerable(Of ResourceType)
returnValue = instance.GetDerivedTypes(resourceType)
IEnumerable<ResourceType> GetDerivedTypes(
ResourceType resourceType
)
IEnumerable<ResourceType^>^ GetDerivedTypes(
ResourceType^ resourceType
)
abstract GetDerivedTypes :
resourceType:ResourceType -> IEnumerable<ResourceType>
function GetDerivedTypes(
resourceType : ResourceType
) : IEnumerable<ResourceType>
Parameters
- resourceType
Type: System.Data.Services.Providers.ResourceType
The base ResourceType.
Return Value
Type: System.Collections.Generic.IEnumerable<ResourceType>
An IEnumerable<T> collection of derived ResourceType objects.
Remarks
The GetDerivedTypes method must return a collection of all the types derived from resourceType.
The type passed to the method by using the resourceType parameter must not be returned in the collection.
An implementer of the IDataServiceMetadataProvider interface must return a null value when no types are derived from the supplied type.