共用方式為


EdmTypeSemantics.IsOnSameTypeHierarchyLineWith(IEdmType, IEdmType) 方法

定義

判斷 thisType 是否與 otherType 相同,或 thisType 衍生自 otherType,或 otherType 衍生自 thisType。

public static bool IsOnSameTypeHierarchyLineWith (this Microsoft.OData.Edm.IEdmType thisType, Microsoft.OData.Edm.IEdmType otherType);
static member IsOnSameTypeHierarchyLineWith : Microsoft.OData.Edm.IEdmType * Microsoft.OData.Edm.IEdmType -> bool
<Extension()>
Public Function IsOnSameTypeHierarchyLineWith (thisType As IEdmType, otherType As IEdmType) As Boolean

參數

thisType
IEdmType

這個 EDM 類型。

otherType
IEdmType

其他 EDM 類型。

傳回

如果 thisType 和 otherType 沿著類型階層中的相同行,則為 true;否則為 false。

適用於