Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

PSPropertyExpression Class

Definition

Namespace:
Microsoft.PowerShell.Commands
Assembly:
System.Management.Automation.dll
Package:
System.Management.Automation v7.4.15
Package:
System.Management.Automation v7.5.6
Package:
System.Management.Automation v7.6.1

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

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

Name Description
PSPropertyExpression(ScriptBlock)

Create a property expression with a ScriptBlock.

PSPropertyExpression(String, Boolean)

Create a property expression with a wildcard pattern.

PSPropertyExpression(String)

Constructor.

Properties

Name Description
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

Name Description
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