JobSchedule Constructor (SqlSmoObject, String)

Initializes a new instance of the JobSchedule class for the specified parent object and that has the specified name.

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

Syntax

'Declaration
Public Sub New ( _
    parent As SqlSmoObject, _
    name As String _
)
'Usage
Dim parent As SqlSmoObject 
Dim name As String 

Dim instance As New JobSchedule(parent, _
    name)
public JobSchedule(
    SqlSmoObject parent,
    string name
)
public:
JobSchedule(
    SqlSmoObject^ parent, 
    String^ name
)
new : 
        parent:SqlSmoObject * 
        name:string -> JobSchedule
public function JobSchedule(
    parent : SqlSmoObject, 
    name : String
)

Parameters

Examples

Scheduling Automatic Administrative Tasks in SQL Server Agent

See Also

Reference

JobSchedule Class

JobSchedule Overload

Microsoft.SqlServer.Management.Smo.Agent Namespace

Other Resources

Automated Administration Tasks (SQL Server Agent)

sp_add_schedule (Transact-SQL)