Compartir a través de


RemoveSharedSchedule Método (Int32, Boolean)

Removes the specified shared schedule from the job and keeps unused schedules.

Espacio de nombres:  Microsoft.SqlServer.Management.Smo.Agent
Ensamblado:  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Sintaxis

'Declaración
Public Sub RemoveSharedSchedule ( _
    scheduleId As Integer, _
    keepUnusedSchedules As Boolean _
)
'Uso
Dim instance As Job
Dim scheduleId As Integer
Dim keepUnusedSchedules As Boolean

instance.RemoveSharedSchedule(scheduleId, _
    keepUnusedSchedules)
public void RemoveSharedSchedule(
    int scheduleId,
    bool keepUnusedSchedules
)
public:
void RemoveSharedSchedule(
    int scheduleId, 
    bool keepUnusedSchedules
)
member RemoveSharedSchedule : 
        scheduleId:int * 
        keepUnusedSchedules:bool -> unit 
public function RemoveSharedSchedule(
    scheduleId : int, 
    keepUnusedSchedules : boolean
)

Parámetros

  • keepUnusedSchedules
    Tipo: System. . :: . .Boolean
    A Boolean value that specifies whether to keep unused schedules. If True, unused schedules are kept. Otherwise, False.

Notas

This method was introduced in SQL Server 2008.