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。