Compares the connection information in this DbConnectionStringBuilder object with the connection information in the supplied object.
Assembly: System.Data (in System.Data.dll)
public: virtual bool EquivalentTo( DbConnectionStringBuilder^ connectionStringBuilder )
Comparisons on key names are case insensitive; value comparisons are case sensitive.
The method returns true if the key/value pairs are equal, regardless of their order. The connection behavior of the two connection strings are equivalent, because order is never significant within connection strings. However, different order may affect connection pooling behavior of connections based on these connection strings.
This sample displays the following output:
builder1 = value1=SomeValue;value2=20;value3=30;value4=40 builder2 = value2=20;value3=30;value4=40;value1=SomeValue builder3 = value2=20;value3=30;value4=40;value1=SOMEVALUE builder1.EquivalentTo(builder2) = True builder2.EquivalentTo(builder3) = False
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.