Share via


Job.JobSchedules Property

Gets a collection of JobSchedule objects that represent the schedules assigned to the job.

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

Syntax

'Declaration
<SfcObjectAttribute(SfcContainerRelationship.ChildContainer, SfcContainerCardinality.ZeroToAny,  _
    GetType(JobSchedule))> _
Public ReadOnly Property JobSchedules As JobScheduleCollection
    Get
'Usage
Dim instance As Job
Dim value As JobScheduleCollection

value = instance.JobSchedules
[SfcObjectAttribute(SfcContainerRelationship.ChildContainer, SfcContainerCardinality.ZeroToAny, 
    typeof(JobSchedule))]
public JobScheduleCollection JobSchedules { get; }
[SfcObjectAttribute(SfcContainerRelationship::ChildContainer, SfcContainerCardinality::ZeroToAny, 
    typeof(JobSchedule))]
public:
property JobScheduleCollection^ JobSchedules {
    JobScheduleCollection^ get ();
}
[<SfcObjectAttribute(SfcContainerRelationship.ChildContainer, SfcContainerCardinality.ZeroToAny, 
    typeof(JobSchedule))>]
member JobSchedules : JobScheduleCollection
function get JobSchedules () : JobScheduleCollection

Property Value

Type: Microsoft.SqlServer.Management.Smo.Agent.JobScheduleCollection
A JobScheduleCollection object value that specifies a collection of JobSchedule objects.