Freigeben über


EdmTypeSemantics.IsOrInheritsFrom-Methode

Bestimmt, ob ein Typ zu einem anderen Typ äquivalent oder daraus abgeleitet wird.

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function IsOrInheritsFrom ( _
    thisType As IEdmType, _
    otherType As IEdmType _
) As Boolean
'Usage
Dim thisType As IEdmType
Dim otherType As IEdmType
Dim returnValue As Boolean

returnValue = thisType.IsOrInheritsFrom(otherType)
public static bool IsOrInheritsFrom(
    this IEdmType thisType,
    IEdmType otherType
)
[ExtensionAttribute]
public:
static bool IsOrInheritsFrom(
    IEdmType^ thisType, 
    IEdmType^ otherType
)
static member IsOrInheritsFrom : 
        thisType:IEdmType * 
        otherType:IEdmType -> bool 
public static function IsOrInheritsFrom(
    thisType : IEdmType, 
    otherType : IEdmType
) : boolean

Parameter

Rückgabewert

Typ: System.Boolean
Nur dann true, wenn der Parameter thisType mit dem Parameter otherType übereinstimmt oder von diesem erbt, andernfalls false.

Hinweis zur Verwendung

In Visual Basic und C# können Sie die Methode als Instanzenmethode für jedes Objekt vom Typ IEdmType aufrufen. Wenn Sie Instanzmethodensyntax zum Aufruf dieser Methode verwenden, vernachlässigen Sie den ersten Parameter. Weitere Informationen finden Sie unter https://msdn.microsoft.com/de-de/library/bb384936(v=vs.103) oder https://msdn.microsoft.com/de-de/library/bb383977(v=vs.103).

Siehe auch

Verweis

EdmTypeSemantics Klasse

Microsoft.Data.Edm-Namespace