EdmElementComparer.IsEquivalentTo 方法 (IEdmType, IEdmType)
如果所比较的类型在语义上等效于此类型,则返回 true。
命名空间: Microsoft.Data.Edm
程序集: Microsoft.Data.Edm(在 Microsoft.Data.Edm.dll 中)
语法
声明
<ExtensionAttribute> _
Public Shared Function IsEquivalentTo ( _
thisType As IEdmType, _
otherType As IEdmType _
) As Boolean
用法
Dim thisType As IEdmType
Dim otherType As IEdmType
Dim returnValue As Boolean
returnValue = thisType.IsEquivalentTo(otherType)
public static bool IsEquivalentTo(
this IEdmType thisType,
IEdmType otherType
)
[ExtensionAttribute]
public:
static bool IsEquivalentTo(
IEdmType^ thisType,
IEdmType^ otherType
)
static member IsEquivalentTo :
thisType:IEdmType *
otherType:IEdmType -> bool
public static function IsEquivalentTo(
thisType : IEdmType,
otherType : IEdmType
) : boolean
参数
- thisType
类型:Microsoft.Data.Edm.IEdmType
对调用对象的引用。
- otherType
类型:Microsoft.Data.Edm.IEdmType
要进行比较的类型。
返回值
类型:System.Boolean
两种类型的等效性。
用法说明
在 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)。