Метод AddMemberServer
Assigns target server group membership to the specified target server.
Пространство имен: Microsoft.SqlServer.Management.Smo.Agent
Сборка: Microsoft.SqlServer.Smo (в Microsoft.SqlServer.Smo.dll)
Синтаксис
'Декларация
Public Sub AddMemberServer ( _
srvname As String _
)
'Применение
Dim instance As TargetServerGroup
Dim srvname As String
instance.AddMemberServer(srvname)
public void AddMemberServer(
string srvname
)
public:
void AddMemberServer(
String^ srvname
)
member AddMemberServer :
srvname:string -> unit
public function AddMemberServer(
srvname : String
)
Параметры
- srvname
Тип System. . :: . .String
A String value that specifies the target server to be removed from the target server group.
Замечания
Use the AddMemberServer and RemoveMemberServer methods to configure multi-server administration target server groups. A target server can be a member of no group or a member of multiple groups.