Dela via


ScheduledJobTrigger.CreateAtLogOnTrigger Method

Definition

Creates a trigger that activates after user log on.

public static Microsoft.PowerShell.ScheduledJob.ScheduledJobTrigger CreateAtLogOnTrigger (string user, TimeSpan delay, int id, bool enabled);
static member CreateAtLogOnTrigger : string * TimeSpan * int * bool -> Microsoft.PowerShell.ScheduledJob.ScheduledJobTrigger
Public Shared Function CreateAtLogOnTrigger (user As String, delay As TimeSpan, id As Integer, enabled As Boolean) As ScheduledJobTrigger

Parameters

user
String

Name of user

delay
TimeSpan

Random delay

id
Int32

Trigger Id

enabled
Boolean

Trigger enabled state

Returns

ScheduledJobTrigger

Applies to