Share via


EdmTypeSemantics.InheritsFrom(IEdmStructuredType, IEdmStructuredType) Method

Definition

Determines if the potential base type is in the inheritance hierarchy of the type being tested.

public static bool InheritsFrom (this Microsoft.OData.Edm.IEdmStructuredType type, Microsoft.OData.Edm.IEdmStructuredType potentialBaseType);
static member InheritsFrom : Microsoft.OData.Edm.IEdmStructuredType * Microsoft.OData.Edm.IEdmStructuredType -> bool
<Extension()>
Public Function InheritsFrom (type As IEdmStructuredType, potentialBaseType As IEdmStructuredType) As Boolean

Parameters

type
IEdmStructuredType

Type to be tested for derivation from the other type.

potentialBaseType
IEdmStructuredType

The potential base type of the type being tested.

Returns

True if and only if the type inherits from the potential base type.

Applies to