次の方法で共有


ModelCollationComparer.Compare メソッド (ModelIdentifier, ModelIdentifier)

指定した 2 つの ModelIdentifier オブジェクトを比較し、それらの互いのリレーションシップを並べ替え順序で示す整数を返します。

名前空間:  Microsoft.Data.Schema.SchemaModel
アセンブリ:  Microsoft.Data.Schema (Microsoft.Data.Schema.dll 内)

構文

'宣言
Public Function Compare ( _
    x As ModelIdentifier, _
    y As ModelIdentifier _
) As Integer
public int Compare(
    ModelIdentifier x,
    ModelIdentifier y
)
public:
virtual int Compare(
    ModelIdentifier^ x, 
    ModelIdentifier^ y
) sealed
abstract Compare : 
        x:ModelIdentifier * 
        y:ModelIdentifier -> int 
override Compare : 
        x:ModelIdentifier * 
        y:ModelIdentifier -> int 
public final function Compare(
    x : ModelIdentifier, 
    y : ModelIdentifier
) : int

パラメーター

戻り値

型: System.Int32
2 つのオブジェクトの構文上のリレーションシップを示す Int32。

状態

number < 0

x は y より小さい値です。

ゼロ

x と y は等しい。

ゼロより大

x が y より大きい値です。

実装

IComparer<T>.Compare(T, T)

.NET Framework セキュリティ

  • 直前の呼び出し元に対する完全な信頼。 このメンバーは、部分的に信頼されているコードから使用することはできません。 詳細については、「部分信頼コードからのライブラリの使用」を参照してください。

参照

参照

ModelCollationComparer クラス

Compare オーバーロード

Microsoft.Data.Schema.SchemaModel 名前空間

Compare