Share via


JobServer.ProxyAccounts Property

Represents a collection of ProxyAccount objects. Each ProxyAccount object represents a proxy account defined on Microsoft SQL Server Agent.

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

Syntax

'Declaration
<SfcObjectAttribute(SfcContainerRelationship.ObjectContainer, SfcContainerCardinality.ZeroToAny,  _
    GetType(ProxyAccount))> _
Public ReadOnly Property ProxyAccounts As ProxyAccountCollection 
    Get
'Usage
Dim instance As JobServer 
Dim value As ProxyAccountCollection 

value = instance.ProxyAccounts
[SfcObjectAttribute(SfcContainerRelationship.ObjectContainer, SfcContainerCardinality.ZeroToAny, 
    typeof(ProxyAccount))]
public ProxyAccountCollection ProxyAccounts { get; }
[SfcObjectAttribute(SfcContainerRelationship::ObjectContainer, SfcContainerCardinality::ZeroToAny, 
    typeof(ProxyAccount))]
public:
property ProxyAccountCollection^ ProxyAccounts {
    ProxyAccountCollection^ get ();
}
[<SfcObjectAttribute(SfcContainerRelationship.ObjectContainer, SfcContainerCardinality.ZeroToAny, 
    typeof(ProxyAccount))>]
member ProxyAccounts : ProxyAccountCollection
function get ProxyAccounts () : ProxyAccountCollection

Property Value

Type: Microsoft.SqlServer.Management.Smo.Agent.ProxyAccountCollection
A ProxyAccountCollection that represents the proxy accounts defined on SQL Server Agent.

Remarks

This property was introduced in SQL Server 2005.

Examples

Scheduling Automatic Administrative Tasks in SQL Server Agent

See Also

Reference

JobServer Class

Microsoft.SqlServer.Management.Smo.Agent Namespace

Other Resources

Automated Administration Tasks (SQL Server Agent)

sp_help_proxy (Transact-SQL)