PSJob.InstanceId Property
Gets the instance identifier of the PSJob that is unique throughout all runspaces.
Namespace: System.Management.Automation
Assembly: System.Management.Automation (in system.management.automation.dll)
Usage
Syntax
'Declaration
Public ReadOnly Property InstanceId As Guid
public Guid InstanceId { get; }
public:
property Guid InstanceId {
Guid get ();
}
/** @property */
public Guid get_InstanceId ()
public function get InstanceId () : Guid
Property Value
A GUID that identifies the instance of the PSJob. The instance identifier is unique throughout the lifetime of the job. For example, if the job is run in 10 runspaces, each PSJob object will have a unique instance identifier.
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