PSJob.Error Property
Gets and sets the error output of the PSJob.
Namespace: System.Management.Automation
Assembly: System.Management.Automation (in system.management.automation.dll)
Usage
Syntax
'Declaration
Public Property Error As PSDataCollection(Of ErrorRecord)
public PSDataCollection<ErrorRecord> Error { get; set; }
public:
property PSDataCollection<ErrorRecord^>^ Error {
PSDataCollection<ErrorRecord^>^ get ();
void set (PSDataCollection<ErrorRecord^>^ value);
}
/** @property */
public PSDataCollection<ErrorRecord> get_Error ()
/** @property */
public void set_Error (PSDataCollection<ErrorRecord> value)
public function get Error () : PSDataCollection<ErrorRecord>
public function set Error (value : PSDataCollection<ErrorRecord>)
Property Value
A PSDataCollection collection that contains the error output from the pipeline executed by the PSJob.
Exceptions
Exception type | Condition |
---|---|
ArgumentNullException | Property is set to null. Set this property to anon-null value. |
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
Development Platforms
Windows Server 2008, Windows Vista, Windows Server 2003, Windows XP
Target Platforms
Windows Server 2008, Windows Server 2003, Windows Vista, Windows XP
See Also
Reference
PSJob Class
PSJob Members
System.Management.Automation Namespace