EdmElementComparer.IsEquivalentTo 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
IsEquivalentTo(IEdmType, IEdmType) |
如果相比較的型別在語意上等於此型別,則傳回 true。 架構類型 (IEdmSchemaType) 會與其物件 ref 進行比較。 |
IsEquivalentTo(IEdmTypeReference, IEdmTypeReference) |
如果比較的類型參考語意相當於這個類型參考,則傳回 true。 架構類型 (IEdmSchemaType) 會與其物件 ref 進行比較。 |
IsEquivalentTo(IEdmType, IEdmType)
如果相比較的型別在語意上等於此型別,則傳回 true。 架構類型 (IEdmSchemaType) 會與其物件 ref 進行比較。
public static bool IsEquivalentTo (this Microsoft.OData.Edm.IEdmType thisType, Microsoft.OData.Edm.IEdmType otherType);
static member IsEquivalentTo : Microsoft.OData.Edm.IEdmType * Microsoft.OData.Edm.IEdmType -> bool
<Extension()>
Public Function IsEquivalentTo (thisType As IEdmType, otherType As IEdmType) As Boolean
參數
- thisType
- IEdmType
要比較的類型。
- otherType
- IEdmType
所要比較的型別。
傳回
兩個型別的等價。
適用於
IsEquivalentTo(IEdmTypeReference, IEdmTypeReference)
如果比較的類型參考語意相當於這個類型參考,則傳回 true。 架構類型 (IEdmSchemaType) 會與其物件 ref 進行比較。
public static bool IsEquivalentTo (this Microsoft.OData.Edm.IEdmTypeReference thisType, Microsoft.OData.Edm.IEdmTypeReference otherType);
static member IsEquivalentTo : Microsoft.OData.Edm.IEdmTypeReference * Microsoft.OData.Edm.IEdmTypeReference -> bool
<Extension()>
Public Function IsEquivalentTo (thisType As IEdmTypeReference, otherType As IEdmTypeReference) As Boolean
參數
- thisType
- IEdmTypeReference
要比較的類型參考。
- otherType
- IEdmTypeReference
所參考的類型與 比較。
傳回
兩個型別參考的等價。