ActivityGenerator.GenerateFromName Method

Definition

Overloads

GenerateFromName(String, String)

Generate an activity for the named command.

GenerateFromName(String, String, Boolean)

Generate an activity for the named command.

GenerateFromName(String, String)

Generate an activity for the named command.

public static string GenerateFromName (string command, string activityNamespace);
Parameters
command
String

The command name to generate.

activityNamespace
String

The namespace that will contain the command - for example, Microsoft.PowerShell.Activities.

Returns

A string representing the C# source code of the generated activity.

GenerateFromName(String, String, Boolean)

Generate an activity for the named command.

public static string GenerateFromName (string command, string activityNamespace, bool shouldRunLocally);
Parameters
command
String

The command name to generate.

activityNamespace
String

The namespace that will contain the command - for example, Microsoft.PowerShell.Activities.

shouldRunLocally
Boolean

True if remoting-related parameters should be suppressed. This should only be specified for commands that offer no value when run on a remote computer.

Returns

A string representing the C# source code of the generated activity.