Assembly: Microsoft.ConfigurationManagement (in microsoft.configurationmanagement.dll)
Usage
Visual Basic |
---|
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
Visual Basic |
---|
Public Shared Function InvokeExternalCompareFunction ( _ externalSortMethodAssembly As AssemblyDescription, _ resultObject1 As IResultObject, _ resultObject2 As IResultObject, _ propertyName As String _ ) As Integer |
C# |
---|
public static int InvokeExternalCompareFunction ( AssemblyDescription externalSortMethodAssembly, IResultObject resultObject1, IResultObject resultObject2, string propertyName ) |
C++ |
---|
public: static int InvokeExternalCompareFunction ( AssemblyDescription^ externalSortMethodAssembly, IResultObject^ resultObject1, IResultObject^ resultObject2, String^ propertyName ) |
J# |
---|
public static int InvokeExternalCompareFunction ( AssemblyDescription externalSortMethodAssembly, IResultObject resultObject1, IResultObject resultObject2, String propertyName ) |
JScript |
---|
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.
- resultObject1
-
[in] IResultObject interface for the first item.
- 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.