다음을 통해 공유


CompareUrn 메서드

두 URNS를 비교합니다.

네임스페이스:  Microsoft.SqlServer.Management.Smo
어셈블리:  Microsoft.SqlServer.Smo(Microsoft.SqlServer.Smo.dll)

구문

‘선언
Public Function CompareUrn ( _
    urn1 As Urn, _
    urn2 As Urn _
) As Integer
‘사용 방법
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

반환 값

유형: System. . :: . .Int32
System.Int32 값(URN 값이 같은 SQL Server 개체와 관련될 경우 0, URN 값이 같은 개체와 관련되지 않을 경우 -1)입니다.