Share via


RegisterScheduledJobCommand.Authentication Property

Gets or sets the authentication mechanism to use for the scheduled job. This property represents the Authentication 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 RegisterScheduledJobCommand
Dim value As AuthenticationMechanism

value = instance.Authentication

instance.Authentication = value

Syntax

'Declaration
<ParameterAttribute(ParameterSetName:="FilePath")> _
<ParameterAttribute(ParameterSetName:="ScriptBlock")> _
Public Property Authentication As AuthenticationMechanism
[ParameterAttribute(ParameterSetName="FilePath")] 
[ParameterAttribute(ParameterSetName="ScriptBlock")] 
public AuthenticationMechanism Authentication { get; set; }
[ParameterAttribute(ParameterSetName=L"FilePath")] 
[ParameterAttribute(ParameterSetName=L"ScriptBlock")] 
public:
property AuthenticationMechanism Authentication {
    AuthenticationMechanism get ();
    void set (AuthenticationMechanism value);
}
/** @property */
public AuthenticationMechanism get_Authentication ()

/** @property */
public void set_Authentication (AuthenticationMechanism value)
public function get Authentication () : AuthenticationMechanism

public function set Authentication (value : AuthenticationMechanism)

Property Value

Returns AuthenticationMechanism.

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

RegisterScheduledJobCommand Class
RegisterScheduledJobCommand Members
Microsoft.PowerShell.ScheduledJob Namespace