SetJobTriggerCommand.User Property

Gets or sets the user name that is used to determine, along with the AtLogon cmdlet parameter, which user logon causes the trigger to activate. This property represents the User cmdlet parameter. This SDK programming element is introduced in Windows PowerShell 3.0.

Namespace: Microsoft.PowerShell.ScheduledJob
Assembly: Microsoft.PowerShell.ScheduledJob (in Microsoft.PowerShell.ScheduledJob.dll)

Usage

'Usage
Dim instance As SetJobTriggerCommand
Dim value As String

value = instance.User

instance.User = value

Syntax

'Declaration
<ValidateNotNullOrEmptyAttribute> _
<ParameterAttribute(ParameterSetName:="DefaultParams")> _
Public Property User As String
[ValidateNotNullOrEmptyAttribute] 
[ParameterAttribute(ParameterSetName="DefaultParams")] 
public string User { get; set; }
[ValidateNotNullOrEmptyAttribute] 
[ParameterAttribute(ParameterSetName=L"DefaultParams")] 
public:
property String^ User {
    String^ get ();
    void set (String^ value);
}
/** @property */
public String get_User ()

/** @property */
public void set_User (String value)
public function get User () : String

public function set User (value : String)

Property Value

Returns String.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Target Platforms

See Also

Reference

SetJobTriggerCommand Class
SetJobTriggerCommand Members
Microsoft.PowerShell.ScheduledJob Namespace