确定某一类型是等效于其他类型还是派生自其他类型。
命名空间: Microsoft.Data.Edm
程序集: Microsoft.Data.Edm(在 Microsoft.Data.Edm.dll 中)
语法
声明
<ExtensionAttribute> _
Public Shared Function IsOrInheritsFrom ( _
thisType As IEdmType, _
otherType As IEdmType _
) As Boolean
用法
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
参数
- thisType
类型:Microsoft.Data.Edm.IEdmType
要对是等效于其他类型还是派生自其他类型而进行测试的类型。
- otherType
类型:Microsoft.Data.Edm.IEdmType
属于其他类型的类型。
返回值
类型:System.Boolean
当且仅当 thisType 参数等效于或继承自 otherType 参数时,才为 true;否则为 false。
用法说明
在 Visual Basic 和 C# 中,您可以对 IEdmType 类型的任何对象将此方法作为实例方法调用。在您使用实例方法语法调用此方法时,将忽略第一个参数。有关详细信息,请参阅https://msdn.microsoft.com/zh-cn/library/bb384936(v=vs.103)或https://msdn.microsoft.com/zh-cn/library/bb383977(v=vs.103)。