Freigeben über


ProxyCommand Class

Definition

A ProxyCommand class used to represent a Command constructed Dynamically.

public ref class ProxyCommand sealed
public sealed class ProxyCommand
type ProxyCommand = class
Public NotInheritable Class ProxyCommand
Inheritance
ProxyCommand

Methods

Create(CommandMetadata)

This method constructs a string representing the command specified by commandMetadata. The returned string is a ScriptBlock which can be used to configure a Cmdlet/Function in a Runspace.

Create(CommandMetadata, String)

This method constructs a string representing the command specified by commandMetadata. The returned string is a ScriptBlock which can be used to configure a Cmdlet/Function in a Runspace.

Create(CommandMetadata, String, Boolean)

This method constructs a string representing the command specified by commandMetadata. The returned string is a ScriptBlock which can be used to configure a Cmdlet/Function in a Runspace.

GetBegin(CommandMetadata)

This method constructs a string representing the begin block of the command specified by commandMetadata. The returned string only contains the script, it is not enclosed in "begin { }".

GetClean(CommandMetadata)

This method constructs a string representing the clean block of the command specified by commandMetadata. The returned string only contains the script, it is not enclosed in "clean { }".

GetCmdletBindingAttribute(CommandMetadata)

This method constructs a string representing the CmdletBinding attribute of the command specified by commandMetadata.

GetDynamicParam(CommandMetadata)

This method constructs a string representing the dynamic parameter block of the command specified by commandMetadata. The returned string only contains the script, it is not enclosed in "dynamicparam { }".

GetEnd(CommandMetadata)

This method constructs a string representing the end block of the command specified by commandMetadata. The returned string only contains the script, it is not enclosed in "end { }".

GetHelpComments(PSObject)

Construct the text that can be used in a multi-line comment for get-help.

GetParamBlock(CommandMetadata)

This method constructs a string representing the param block of the command specified by commandMetadata. The returned string only contains the parameters, it is not enclosed in "param()".

GetProcess(CommandMetadata)

This method constructs a string representing the process block of the command specified by commandMetadata. The returned string only contains the script, it is not enclosed in "process { }".

Applies to