Server.CompareUrn Method (Urn, Urn)


Compares two URNS.

Namespace:   Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Public Function CompareUrn (
	urn1 As Urn,
	urn2 As Urn
) As Integer

Return Value

Type: System.Int32

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.

Return to top