Bagikan melalui


EdmTypeSemantics.IsOrInheritsFrom Method

Determines whether a type is equivalent to or derived from another type.

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

Parameters

Return Value

Type: System.Boolean
true if and only if the thisType parameter is equivalent to or inherits from otherType parameter; otherwise, false.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEdmType. 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