Compartilhar via


PSPropertyExpression Class

Definition

PSPropertyExpression class. This class is used to get the names and/or values of properties on an object. A property expression can be constructed using either a wildcard expression string or a scriptblock to use to get the property value.

public class PSPropertyExpression
type PSPropertyExpression = class
Public Class PSPropertyExpression
Inheritance
PSPropertyExpression

Constructors

PSPropertyExpression(ScriptBlock)

Create a property expression with a ScriptBlock.

PSPropertyExpression(String, Boolean)

Create a property expression with a wildcard pattern.

PSPropertyExpression(String)

Constructor.

Properties

HasWildCardCharacters

Indicates if the pattern has wildcard characters in it. If the supplied pattern was a scriptblock, this will be false.

Script

The ScriptBlock for this expression to use when matching.

Methods

GetValues(PSObject, Boolean, Boolean)

Gets the values of the object properties matched by this expression.

GetValues(PSObject)

Gets the values of the object properties matched by this expression.

ResolveNames(PSObject, Boolean)

Resolve the names matched by the expression.

ResolveNames(PSObject)

Resolve the names matched by the expression.

ToString()

ToString() implementation for the property expression.

Applies to