SetScheduledJobCommand.Credential Property

Gets or sets the PowerShell credentials for the scheduled job. This property represents the Credential 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 SetScheduledJobCommand
Dim value As PSCredential

value = instance.Credential

instance.Credential = value

Syntax

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

/** @property */
public void set_Credential (PSCredential value)
public function get Credential () : PSCredential

public function set Credential (value : PSCredential)

Property Value

Returns PSCredential.

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

SetScheduledJobCommand Class
SetScheduledJobCommand Members
Microsoft.PowerShell.ScheduledJob Namespace