TargetServerGroup.AddMemberServer Method
Assigns target server group membership to the specified target server.
Espace de noms: Microsoft.SqlServer.Management.Smo.Agent
Assembly: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)
Syntaxe
'Déclaration
Public Sub AddMemberServer ( _
srvname As String _
)
public void AddMemberServer (
string srvname
)
public:
void AddMemberServer (
String^ srvname
)
public void AddMemberServer (
String srvname
)
public function AddMemberServer (
srvname : String
)
Paramètres
- srvname
A String value that specifies the target server to be removed from the target server group.
Notes
Use the AddMemberServer and RemoveMemberServer methods to configure multiserver administration target server groups. A target server can be a member of no group or a member of multiple groups.
Cet espace de noms, cette classe ou ce membre est pris en charge uniquement par la version 2.0 de Microsoft .NET Framework.
Exemple
How to: Use an SMO Method with a Parameter in Visual Basic .NET
Sécurité des threads
Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Plateformes
Plateformes de développement
Pour obtenir la liste des plateformes prises en charge, consultez Configuration matérielle et logicielle requise pour l'installation de SQL Server 2005.
Plateformes cibles
Pour obtenir la liste des plateformes prises en charge, consultez Configuration matérielle et logicielle requise pour l'installation de SQL Server 2005.
Voir aussi
Référence
TargetServerGroup Class
TargetServerGroup Members
Microsoft.SqlServer.Management.Smo.Agent Namespace
Autres ressources
Scheduling Automatic Administrative Tasks in SQL Server Agent
Automatisation des tâches administratives (SQL Server Agent)
sp_add_targetsvrgrp_member (Transact-SQL)