Server.CompareUrn(Urn, Urn) Server.CompareUrn(Urn, Urn) Server.CompareUrn(Urn, Urn) Method

Definition

Compares two URNS.

public:
 int CompareUrn(Microsoft::SqlServer::Management::Sdk::Sfc::Urn ^ urn1, Microsoft::SqlServer::Management::Sdk::Sfc::Urn ^ urn2);
public int CompareUrn (Microsoft.SqlServer.Management.Sdk.Sfc.Urn urn1, Microsoft.SqlServer.Management.Sdk.Sfc.Urn urn2);
Public Function CompareUrn (urn1 As Urn, urn2 As Urn) As Integer
Parameters
urn1
Urn Urn Urn

The Urn 1 object.

urn2
Urn Urn Urn

The Urn 2 object.

Returns

A System.Int32 value that is 0 when the URN values relate to the same SQL Server object, and -1 when they do not relate to the same object.

Applies to