JobSchedule Constructor (SqlSmoObject, String)
Initializes a new instance of the JobSchedule class for the specified parent object and with 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 _
)
public JobSchedule (
SqlSmoObject parent,
string name
)
public:
JobSchedule (
SqlSmoObject^ parent,
String^ name
)
public JobSchedule (
SqlSmoObject parent,
String name
)
public function JobSchedule (
parent : SqlSmoObject,
name : String
)
Parameters
- parent
A SqlSmoObject object value that specifies the parent of the JobSchedule object.
- name
A String value that specifies the name of the job schedule.
Remarks
This namespace, class, or member is supported only in version 2.0 of the Microsoft .NET Framework.
Example
How to: Create a Job with Steps and a Schedule in Visual Basic .NET
Platforms
Development Platforms
For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.
Target Platforms
For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.
See Also
Reference
JobSchedule Class
JobSchedule Members
Microsoft.SqlServer.Management.Smo.Agent Namespace
Other Resources
Scheduling Automatic Administrative Tasks in SQL Server Agent
Automating Administrative Tasks (SQL Server Agent)
sp_add_schedule (Transact-SQL)