Share via


Job.AddSharedSchedule Method

Adds a shared schedule to the Microsoft SQL Server Agent job.

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

Syntax

'Declaration
Public Sub AddSharedSchedule ( _
    scheduleId As Integer _
)
'Usage
Dim instance As Job
Dim scheduleId As Integer

instance.AddSharedSchedule(scheduleId)
public void AddSharedSchedule(
    int scheduleId
)
public:
void AddSharedSchedule(
    int scheduleId
)
member AddSharedSchedule : 
        scheduleId:int -> unit 
public function AddSharedSchedule(
    scheduleId : int
)

Parameters

Remarks

This method was introduced in SQL Server 2005.