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