다음을 통해 공유


PSReference Class

Definition

Define type for a reference object in PowerShell scripting language.

public ref class PSReference
public class PSReference
type PSReference = class
Public Class PSReference
Inheritance
PSReference

Remarks

This class is used to describe both kinds of references: a. reference to a value: _value will be holding the value being referenced. b. reference to a variable: _value will be holding a PSVariable instance for the variable to be referenced.

A reference is created in following ways, a. value reference $a = [ref] 3 [ref] $a = 3 [ref] $a = $b b. variable reference $a = [ref] $b

Constructors

PSReference(Object)

Create an instance of PSReference.

Properties

Value

Get and set value of PSReference.

Applies to