Server.CompareUrn Method
Compares two Uniform Resource Name (URN) addresses.
Spazio dei nomi: Microsoft.SqlServer.Management.Smo
Assembly : Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)
Sintassi
'Dichiarazione
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
Parametri
- urn1
A Urn object that specifies the first URN address.
- urn2
A Urn object that specifies the second URN address.
Valore restituito
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.
Osservazioni
Testo aggiornato:
Use this method to determine whether two URN objects represent the same object in SQL Server.
Questo spazio dei nomi, classe o membro è supportato solo nella versione 2.0 di Microsoft .NET Framework.
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.
Piattaforme
Piattaforme di sviluppo
Per un elenco delle piattaforme supportate, vedere Requisiti hardware e software per l'Installazione di SQL Server 2005.
Piattaforme di destinazione
Per un elenco delle piattaforme supportate, vedere Requisiti hardware e software per l'Installazione di SQL Server 2005.
Vedere anche
Riferimento
Server Class
Server Members
Microsoft.SqlServer.Management.Smo Namespace
Altre risorse
How to: Use an SMO Method with a Parameter in Visual Basic .NET
Calling Methods
Gestione dei server