Skip to main content
.NET Framework Class Library
ConfigurationElementEquals Method

This member overrides ObjectEquals(Object), and more complete documentation might be available in that topic.

Compares the current ConfigurationElement instance to the specified object.

Namespace:   System.Configuration
Assembly:  System.Configuration (in System.Configuration.dll)
Syntax
Public Overrides Function Equals ( _
	compareTo As [%$TOPIC/cy9e8hzc_en-us_VS_110_3_0_0_0_0%] _
) As [%$TOPIC/cy9e8hzc_en-us_VS_110_3_0_0_0_1%]
public override [%$TOPIC/cy9e8hzc_en-us_VS_110_3_0_1_0_0%] Equals(
	[%$TOPIC/cy9e8hzc_en-us_VS_110_3_0_1_0_1%] compareTo
)
public:
virtual [%$TOPIC/cy9e8hzc_en-us_VS_110_3_0_2_0_0%] Equals(
	[%$TOPIC/cy9e8hzc_en-us_VS_110_3_0_2_0_1%]^ compareTo
) override
abstract Equals : 
        compareTo:[%$TOPIC/cy9e8hzc_en-us_VS_110_3_0_3_0_0%] -> [%$TOPIC/cy9e8hzc_en-us_VS_110_3_0_3_0_1%]  
override Equals : 
        compareTo:[%$TOPIC/cy9e8hzc_en-us_VS_110_3_0_3_0_2%] -> [%$TOPIC/cy9e8hzc_en-us_VS_110_3_0_3_0_3%]

Parameters

compareTo
Type: SystemObject

The object to compare with.

Return Value

Type: SystemBoolean
true if the object to compare with is equal to the current ConfigurationElement instance; otherwise, false. The default is false.
Version Information

.NET Framework

Supported in: 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Platforms

Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.