RegisterScheduledJobCommand.Name Property

Gets or sets the name of the scheduled job definition. This property represents the Name 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 String

value = instance.Name

instance.Name = value

Syntax

'Declaration
<ValidateNotNullOrEmptyAttribute> _
<ParameterAttribute(Position:=0, Mandatory:=True, ParameterSetName:="ScriptBlock")> _
<ParameterAttribute(Position:=0, Mandatory:=True, ParameterSetName:="FilePath")> _
Public Property Name As String
[ValidateNotNullOrEmptyAttribute] 
[ParameterAttribute(Position=0, Mandatory=true, ParameterSetName="ScriptBlock")] 
[ParameterAttribute(Position=0, Mandatory=true, ParameterSetName="FilePath")] 
public string Name { get; set; }
[ValidateNotNullOrEmptyAttribute] 
[ParameterAttribute(Position=0, Mandatory=true, ParameterSetName=L"ScriptBlock")] 
[ParameterAttribute(Position=0, Mandatory=true, ParameterSetName=L"FilePath")] 
public:
property String^ Name {
    String^ get ();
    void set (String^ value);
}
/** @property */
public String get_Name ()

/** @property */
public void set_Name (String value)
public function get Name () : String

public function set Name (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

RegisterScheduledJobCommand Class
RegisterScheduledJobCommand Members
Microsoft.PowerShell.ScheduledJob Namespace