Udostępnij przez


Server.CompareUrn Method

Compares two URNS.

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

Syntax

'Deklaracja
Public Function CompareUrn ( _
    urn1 As Urn, _
    urn2 As Urn _
) As Integer
public int CompareUrn (
    Urn urn1,
    Urn urn2
)
public:
int CompareUrn (
    Urn^ urn1, 
    Urn^ urn2
)
public int CompareUrn (
    Urn urn1, 
    Urn urn2
)
public function CompareUrn (
    urn1 : Urn, 
    urn2 : Urn
) : int

Parameters

  • urn2
    Urn

Return Value

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.

Thread Safety

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.

Target Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.