TargetServerCollection.Add Method
Adds a TargetServer to the collection.
Namespace: Microsoft.SqlServer.Management.Smo.Agent
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
Syntax
'Declaration
Public Sub Add ( _
server As TargetServer _
)
'Usage
Dim instance As TargetServerCollection
Dim server As TargetServer
instance.Add(server)
public void Add(
TargetServer server
)
public:
void Add(
TargetServer^ server
)
member Add :
server:TargetServer -> unit
public function Add(
server : TargetServer
)
Parameters
- server
Type: Microsoft.SqlServer.Management.Smo.Agent.TargetServer
The TargetServer to add to the collection.