共用方式為


GetKey 方法

Gets the key associated with the Unique Resource Name (URN) fragment.

命名空間:  Microsoft.SqlServer.Management.RegisteredServers
組件:  Microsoft.SqlServer.Management.RegisteredServers (在 Microsoft.SqlServer.Management.RegisteredServers.dll 中)

語法

'宣告
Public Function GetKey ( _
    urnFragment As IUrnFragment _
) As SfcKey
'用途
Dim instance As RegisteredServersStore
Dim urnFragment As IUrnFragment
Dim returnValue As SfcKey

returnValue = instance.GetKey(urnFragment)
public SfcKey GetKey(
    IUrnFragment urnFragment
)
public:
virtual SfcKey^ GetKey(
    IUrnFragment^ urnFragment
) sealed
abstract GetKey : 
        urnFragment:IUrnFragment -> SfcKey 
override GetKey : 
        urnFragment:IUrnFragment -> SfcKey 
public final function GetKey(
    urnFragment : IUrnFragment
) : SfcKey

參數

傳回值

型別:Microsoft.SqlServer.Management.Sdk.Sfc. . :: . .SfcKey
The key associated with the Unique Resource Name fragment.

實作

ISfcDomain. . :: . .GetKey(IUrnFragment)

備註

只有 Microsoft .NET Framework 2.0 版支援此命名空間、類別或成員。