Compartir a través de


CompareUrn Método

Compares two URNS.

Espacio de nombres:  Microsoft.SqlServer.Management.Smo
Ensamblado:  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Sintaxis

'Declaración
Public Function CompareUrn ( _
    urn1 As Urn, _
    urn2 As Urn _
) As Integer
'Uso
Dim instance As Server
Dim urn1 As Urn
Dim urn2 As Urn
Dim returnValue As Integer

returnValue = instance.CompareUrn(urn1, _
    urn2)
public int CompareUrn(
    Urn urn1,
    Urn urn2
)
public:
int CompareUrn(
    Urn^ urn1, 
    Urn^ urn2
)
member CompareUrn : 
        urn1:Urn * 
        urn2:Urn -> int 
public function CompareUrn(
    urn1 : Urn, 
    urn2 : Urn
) : int

Parámetros

  • urn1
    Tipo: Urn
    Urn
  • urn2
    Tipo: Urn
    Urn

Valor devuelto

Tipo: 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.