Share via


TargetServerGroup.EnumMemberServers Method

Enumerates a list of target servers that are members of the referenced target server group.

Namespace:  Microsoft.SqlServer.Management.Smo.Agent
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
Public Function EnumMemberServers As TargetServer()
'Usage
Dim instance As TargetServerGroup 
Dim returnValue As TargetServer()

returnValue = instance.EnumMemberServers()
public TargetServer[] EnumMemberServers()
public:
array<TargetServer^>^ EnumMemberServers()
member EnumMemberServers : unit -> TargetServer[] 
public function EnumMemberServers() : TargetServer[]

Return Value

Type: array<Microsoft.SqlServer.Management.Smo.Agent.TargetServer[]
An array of TargetServer objects that are members of the referenced target server group.

Examples

Scheduling Automatic Administrative Tasks in SQL Server Agent

See Also

Reference

TargetServerGroup Class

Microsoft.SqlServer.Management.Smo.Agent Namespace

Other Resources

Automated Administration Tasks (SQL Server Agent)

sp_help_targetservergroup (Transact-SQL)