NewJobTriggerCommand.User Property
Gets or sets the user name that is used to determine 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 NewJobTriggerCommand
Dim value As String
value = instance.User
instance.User = value
Syntax
'Declaration
<ParameterAttribute(ParameterSetName:="AtLogon")> _
<ValidateNotNullOrEmptyAttribute> _
Public Property User As String
[ParameterAttribute(ParameterSetName="AtLogon")]
[ValidateNotNullOrEmptyAttribute]
public string User { get; set; }
[ParameterAttribute(ParameterSetName=L"AtLogon")]
[ValidateNotNullOrEmptyAttribute]
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.
Remarks
This property is used in conjunction with the AtLogOn property.
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
NewJobTriggerCommand Class
NewJobTriggerCommand Members
Microsoft.PowerShell.ScheduledJob Namespace