IDataServiceMetadataProvider.GetDerivedTypes(ResourceType) 方法

定义

尝试返回从指定的资源类型派生的所有类型。Attempts to return all types that derive from the specified resource type.

public:
 System::Collections::Generic::IEnumerable<System::Data::Services::Providers::ResourceType ^> ^ GetDerivedTypes(System::Data::Services::Providers::ResourceType ^ resourceType);
public System.Collections.Generic.IEnumerable<System.Data.Services.Providers.ResourceType> GetDerivedTypes (System.Data.Services.Providers.ResourceType resourceType);
abstract member GetDerivedTypes : System.Data.Services.Providers.ResourceType -> seq<System.Data.Services.Providers.ResourceType>
Public Function GetDerivedTypes (resourceType As ResourceType) As IEnumerable(Of ResourceType)

参数

resourceType
ResourceType

ResourceTypeThe base ResourceType.

返回

IEnumerable<ResourceType>

派生的 IEnumerable<T> 对象的 ResourceType 集合。An IEnumerable<T> collection of derived ResourceType objects.

注解

GetDerivedTypes 方法必须返回派生自 resourceType 的所有类型的集合。The GetDerivedTypes method must return a collection of all the types derived from resourceType.

不得在集合中返回通过 resourceType 参数传递到方法的类型。The type passed to the method by using the resourceType parameter must not be returned in the collection.

当没有从提供的类型中派生类型时,IDataServiceMetadataProvider 接口的实现器必须返回 Null 值。An implementer of the IDataServiceMetadataProvider interface must return a null value when no types are derived from the supplied type.

适用于