共用方式為


Drop 方法 (Boolean)

Removes the reference to the linked server from the instance of SQL Server.

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

語法

'宣告
Public Sub Drop ( _
    dropDependentLogins As Boolean _
)
'用途
Dim instance As LinkedServer
Dim dropDependentLogins As Boolean

instance.Drop(dropDependentLogins)
public void Drop(
    bool dropDependentLogins
)
public:
void Drop(
    bool dropDependentLogins
)
member Drop : 
        dropDependentLogins:bool -> unit 
public function Drop(
    dropDependentLogins : boolean
)

參數

  • dropDependentLogins
    型別:System. . :: . .Boolean
    A Boolean value that specifies whether to also drop logins that are dependent on the linked server that are represented by the LinkedServerLogins property.
    If True, the dependent logins are dropped. Otherwise, False.

備註

This method removes the registration item that represents a linked server. It does not remove an instance of SQL Server.