Bagikan melalui


EdmTypeSemantics.InheritsFrom Method

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

Namespace:  Microsoft.Data.Edm
Assembly:  Microsoft.Data.Edm (in Microsoft.Data.Edm.dll)

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function InheritsFrom ( _
    type As IEdmStructuredType, _
    potentialBaseType As IEdmStructuredType _
) As Boolean
'Usage
Dim type As IEdmStructuredType 
Dim potentialBaseType As IEdmStructuredType 
Dim returnValue As Boolean 

returnValue = type.InheritsFrom(potentialBaseType)
public static bool InheritsFrom(
    this IEdmStructuredType type,
    IEdmStructuredType potentialBaseType
)
[ExtensionAttribute]
public:
static bool InheritsFrom(
    IEdmStructuredType^ type, 
    IEdmStructuredType^ potentialBaseType
)
static member InheritsFrom : 
        type:IEdmStructuredType * 
        potentialBaseType:IEdmStructuredType -> bool
public static function InheritsFrom(
    type : IEdmStructuredType, 
    potentialBaseType : IEdmStructuredType
) : boolean

Parameters

Return Value

Type: System.Boolean
true if and only if the type inherits from the potential base type; otherwise, false.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEdmStructuredType. When you use instance method syntax to call this method, omit the first parameter. For more information, see https://msdn.microsoft.com/en-us/library/bb384936(v=vs.103) or https://msdn.microsoft.com/en-us/library/bb383977(v=vs.103).

See Also

Reference

EdmTypeSemantics Class

Microsoft.Data.Edm Namespace