PSJob.Warning Property
Gets and sets the warning output for the PSJob.
Namespace: System.Management.Automation
Assembly: System.Management.Automation (in system.management.automation.dll)
Usage
Syntax
'Declaration
Public Property Warning As PSDataCollection(Of String)
public PSDataCollection<string> Warning { get; set; }
public:
property PSDataCollection<String^>^ Warning {
PSDataCollection<String^>^ get ();
void set (PSDataCollection<String^>^ value);
}
/** @property */
public PSDataCollection<String> get_Warning ()
/** @property */
public void set_Warning (PSDataCollection<String> value)
public function get Warning () : PSDataCollection<String>
public function set Warning (value : PSDataCollection<String>)
Property Value
A PSDataCollection collection that contains the warning 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