EdmElementComparer.IsEquivalentTo 方法 (IEdmTypeReference, IEdmTypeReference)

如果所比较的类型在语义上等效于此类型,则返回 true。

命名空间:  Microsoft.Data.Edm
程序集:  Microsoft.Data.Edm(在 Microsoft.Data.Edm.dll 中)

语法

声明
<ExtensionAttribute> _
Public Shared Function IsEquivalentTo ( _
    thisType As IEdmTypeReference, _
    otherType As IEdmTypeReference _
) As Boolean
用法
Dim thisType As IEdmTypeReference
Dim otherType As IEdmTypeReference
Dim returnValue As Boolean

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

参数

返回值

类型:System.Boolean
两种类型的等效性。

用法说明

在 Visual Basic 和 C# 中,您可以对 IEdmTypeReference 类型的任何对象将此方法作为实例方法调用。在您使用实例方法语法调用此方法时,将忽略第一个参数。有关详细信息,请参阅https://msdn.microsoft.com/zh-cn/library/bb384936(v=vs.103)https://msdn.microsoft.com/zh-cn/library/bb383977(v=vs.103)

请参阅

参考

EdmElementComparer 类

IsEquivalentTo 重载

Microsoft.Data.Edm 命名空间