Add 方法
Adds a ServerGroup object to the ServerGroupCollection collection.
命名空間: Microsoft.SqlServer.Management.Smo.RegisteredServers
組件: Microsoft.SqlServer.SmoExtended (在 Microsoft.SqlServer.SmoExtended.dll 中)
語法
'宣告
Public Sub Add ( _
registeredServer As ServerGroup _
)
'用途
Dim instance As ServerGroupCollection
Dim registeredServer As ServerGroup
instance.Add(registeredServer)
public void Add(
ServerGroup registeredServer
)
public:
void Add(
ServerGroup^ registeredServer
)
member Add :
registeredServer:ServerGroup -> unit
public function Add(
registeredServer : ServerGroup
)
參數
- registeredServer
型別:Microsoft.SqlServer.Management.Smo.RegisteredServers. . :: . .ServerGroup
A ServerGroup object that is to be added to the ServerGroupCollection object.