ArcObjects Library Reference  (System)    

IPropertySet.IsEqual Method

True if the property set is the same as the input property set.

[Visual Basic 6.0]
Function IsEqual(
    ByVal PropertySet As IPropertySet _
) As Boolean
[Visual Basic .NET]
Public Function IsEqual ( _
    ByVal PropertySet As IPropertySet _
) As Boolean
[C#]
public bool IsEqual (
    IPropertySet PropertySet
);
[Java]
public Boolean isEqual (
    IPropertySet PropertySet
)
throws
    IOException,
    AutomationException
[C++]
HRESULT IsEqual(
  IPropertySet* PropertySet,
  VARIANT_BOOL* IsEqual
);
[C++]

Parameters

PropertySet [in]

  PropertySet is a parameter of type IPropertySet

IsEqual [out, retval]

  IsEqual is a parameter of type VARIANT_BOOL

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Remarks

This method indicates whether two property sets are equal.

Note that it will always return false if the property set is an esriGeodatabase.XmlPropertySet (for metadata). See the XmlPropertySet coclass' documentation for more information.

[Visual Basic 6.0]

The code below creates two PropertySets and then compares them using the IsEqual method

    Dim pPS1 As IPropertySet
    Dim pPS2 As IPropertySet
    Dim vTags As Variant
    Dim vValues As Variant
    Dim b As Boolean

    'Create the first PropertySet
    Set pPS1 = New PropertySet
    vValues = "value1"
    pPS1.SetProperty "name1", vValues
    vValues = "value2"
    pPS1.SetProperty "name2", vValues

    'Create the second PropertySet    
    Set pPS2 = New PropertySet
    vValues = "value1"
    pPS2.SetProperty "name1", vValues
    vValues = "value2"
    pPS2.SetProperty "name2", vValues

   'Compare the files to see if they are equal
    b = pPS1.IsEqual(pPS2)
    MsgBox "PropertySets are equal: " & b

See Also

IPropertySet Interface