System.Management.Automation.PSReference
defines a type for a reference object that are used when passing objects (parameters) by reference to a function. PSReference
has one property: Value
. PSReference
is used to for two (both?) kinds of references: _value
stores the value being referenced.
_value
stores a PSVariable
instance for the variable to be referenced. PSReference
inherits directly from System.Object
.