Freigeben über


UtilityClass.InvokeExternalCompareFunction Method

Invokes the external sort comparison function.

Namespace: Microsoft.ConfigurationManagement.AdminConsole
Assembly: Microsoft.ConfigurationManagement (in microsoft.configurationmanagement.dll)

Usage

'Usage
Dim externalSortMethodAssembly As AssemblyDescription
Dim resultObject1 As IResultObject
Dim resultObject2 As IResultObject
Dim propertyName As String
Dim returnValue As Integer

returnValue = UtilityClass.InvokeExternalCompareFunction(externalSortMethodAssembly, resultObject1, resultObject2, propertyName)

Syntax

'Declaration
Public Shared Function InvokeExternalCompareFunction ( _
    externalSortMethodAssembly As AssemblyDescription, _
    resultObject1 As IResultObject, _
    resultObject2 As IResultObject, _
    propertyName As String _
) As Integer
public static int InvokeExternalCompareFunction (
    AssemblyDescription externalSortMethodAssembly,
    IResultObject resultObject1,
    IResultObject resultObject2,
    string propertyName
)
public:
static int InvokeExternalCompareFunction (
    AssemblyDescription^ externalSortMethodAssembly, 
    IResultObject^ resultObject1, 
    IResultObject^ resultObject2, 
    String^ propertyName
)
public static int InvokeExternalCompareFunction (
    AssemblyDescription externalSortMethodAssembly, 
    IResultObject resultObject1, 
    IResultObject resultObject2, 
    String propertyName
)
public static function InvokeExternalCompareFunction (
    externalSortMethodAssembly : AssemblyDescription, 
    resultObject1 : IResultObject, 
    resultObject2 : IResultObject, 
    propertyName : String
) : int

Parameters

  • externalSortMethodAssembly
    [in] AssemblyDescription object that represents the assembly for the external sort method.
  • resultObject2
    [in] IResultObject interface for the second item.
  • propertyName
    [in] Name of the property to use for comparison.

Return Value

Value that indicates the comparison result.

Exceptions

Exception type Condition
ArgumentNullException

The externalSortMethodAssembly parameter cannot be null.

ArgumentException

The externalSortMethodAssembly parameter must indicate complete assembly information.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Server 2003, Windows Vista

Target Platforms

Windows Server 2003,Windows Vista

See Also

Reference

UtilityClass Class
UtilityClass Members
Microsoft.ConfigurationManagement.AdminConsole Namespace
AssemblyDescription
IResultObject