SPJobDefinition.Schedule property
Obtém ou define o agendamento da definição de trabalho.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaração
Public Property Schedule As SPSchedule
Get
Set
'Uso
Dim instance As SPJobDefinition
Dim value As SPSchedule
value = instance.Schedule
instance.Schedule = value
public SPSchedule Schedule { get; set; }
Property value
Type: Microsoft.SharePoint.SPSchedule
Um objeto SPSchedule .
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | O valor que você tentou definir é a null reference (Nothing in Visual Basic). |
ArgumentOutOfRangeException | A estrutura de DateTime na propriedade Time de um objeto SPOneTimeSchedule Especifica um ano antes de 1900. |
SPException | Você está tentando converter um trabalho único em um trabalho recorrente ou um trabalho recorrente para um trabalho único. |
Comentários
Se desejar que o trabalho seja executado imediatamente, chame o método RunNow() .