Delen via


ExtensionRegistrarBase<T, TMetadataView>.Compare Method

Compares two imported objects of the same type.

Namespace:  Microsoft.VisualStudio.Modeling.ExtensionEnablement
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.12.0.dll)

Syntax

'Declaration
Protected Overridable Function Compare ( _
    importedObject1 As Tuple(Of T, TMetadataView), _
    importedObject2 As Tuple(Of T, TMetadataView) _
) As Integer
protected virtual int Compare(
    Tuple<T, TMetadataView> importedObject1,
    Tuple<T, TMetadataView> importedObject2
)
protected:
virtual int Compare(
    Tuple<T, TMetadataView>^ importedObject1, 
    Tuple<T, TMetadataView>^ importedObject2
)
abstract Compare : 
        importedObject1:Tuple<'T, 'TMetadataView> * 
        importedObject2:Tuple<'T, 'TMetadataView> -> int  
override Compare : 
        importedObject1:Tuple<'T, 'TMetadataView> * 
        importedObject2:Tuple<'T, 'TMetadataView> -> int
protected function Compare(
    importedObject1 : Tuple<T, TMetadataView>, 
    importedObject2 : Tuple<T, TMetadataView>
) : int

Parameters

Return Value

Type: System.Int32
Less than 0: importedObject1 is before importedObject2 0: order not guaranteed between importedObject1 and importedObject2 Greater than 0: importedObject1 is after importedObject2

.NET Framework Security

See Also

Reference

ExtensionRegistrarBase<T, TMetadataView> Class

Microsoft.VisualStudio.Modeling.ExtensionEnablement Namespace