Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

PowerShellValue<T> Class

 

Updated: April 27, 2016

Applies To: Windows PowerShell

Represents an activity that evaluates a Windows PowerShell expression and returns the value of type T. This class cannot be inherited. Introduced in Windows PowerShell 3.0.

Namespace:   Microsoft.PowerShell.Activities
Assembly:  Microsoft.PowerShell.Activities (in Microsoft.PowerShell.Activities.dll)

System.Object
  System.Activities.Activity
    System.Activities.ActivityWithResult
      System.Activities.Activity<TResult>
        System.Activities.NativeActivity<TResult>
          Microsoft.PowerShell.Activities.PowerShellValue<T>

public sealed class PowerShellValue<T> : NativeActivity<T>

Type Parameters

T

The value returned by the activity.

NameDescription
System_CAPS_pubmethodPowerShellValue<T>()

Initializes a new instance of the PowerShellValue<T> class. Introduced in Windows PowerShell 3.0.

NameDescription
System_CAPS_protpropertyCacheId

(Inherited from Activity.)

System_CAPS_pubpropertyDisplayName

(Inherited from Activity.)

System_CAPS_pubpropertyExpression

Gets or sets the Windows PowerShell expression to evaluate. Introduced in Windows PowerShell 3.0.

System_CAPS_pubpropertyId

(Inherited from Activity.)

System_CAPS_protpropertyImplementationVersion

(Inherited from NativeActivity<TResult>.)

System_CAPS_pubpropertyResult

(Inherited from Activity<TResult>.)

System_CAPS_pubpropertyResultType

(Inherited from ActivityWithResult.)

System_CAPS_pubpropertyUseDefaultInput

Gets or sets a value that indicates whether to connect the input stream for this activity. Introduced in Windows PowerShell 3.0.

NameDescription
System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Activity.)

System_CAPS_pubmethodValidateExpressionConstraints(IEnumerable<String>, IEnumerable<String>, Boolean)

Checks whether the expression only uses elements of the restricted language and only uses the allowed commands and variables. Introduced in Windows PowerShell 3.0.

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: