共用方式為


PSPropertyExpression Constructors

Definition

Overloads

PSPropertyExpression(ScriptBlock)

Create a property expression with a ScriptBlock.

PSPropertyExpression(String)

Constructor.

PSPropertyExpression(String, Boolean)

Create a property expression with a wildcard pattern.

PSPropertyExpression(ScriptBlock)

Create a property expression with a ScriptBlock.

public PSPropertyExpression (System.Management.Automation.ScriptBlock scriptBlock);
new Microsoft.PowerShell.Commands.PSPropertyExpression : System.Management.Automation.ScriptBlock -> Microsoft.PowerShell.Commands.PSPropertyExpression
Public Sub New (scriptBlock As ScriptBlock)

Parameters

scriptBlock
ScriptBlock

ScriptBlock to evaluate when retrieving the property value from an object.

Exceptions

Applies to

PSPropertyExpression(String)

Constructor.

public PSPropertyExpression (string s);
new Microsoft.PowerShell.Commands.PSPropertyExpression : string -> Microsoft.PowerShell.Commands.PSPropertyExpression
Public Sub New (s As String)

Parameters

s
String

Expression.

Exceptions

Applies to

PSPropertyExpression(String, Boolean)

Create a property expression with a wildcard pattern.

public PSPropertyExpression (string s, bool isResolved);
new Microsoft.PowerShell.Commands.PSPropertyExpression : string * bool -> Microsoft.PowerShell.Commands.PSPropertyExpression
Public Sub New (s As String, isResolved As Boolean)

Parameters

s
String

Property name pattern to match.

isResolved
Boolean

true if no further attempts should be made to resolve wildcards.

Exceptions

Applies to