ActivityGenerator.GenerateFromName Method (String, String, Boolean)

Generates source code for a Workflow activity by using the named command.. Introduced in Windows PowerShell 3.0.


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

'Usage
Dim command As String
Dim activityNamespace As String
Dim shouldRunLocally As Boolean
Dim returnValue As String

returnValue = ActivityGenerator.GenerateFromName(command, activityNamespace, shouldRunLocally)

public static string GenerateFromName (
	string command,
	string activityNamespace,
	bool shouldRunLocally
)
public static String GenerateFromName (
	String command, 
	String activityNamespace, 
	boolean shouldRunLocally
)
public static function GenerateFromName (
	command : String, 
	activityNamespace : String, 
	shouldRunLocally : boolean
) : String

Parameters

command

The command name to generate.

activityNamespace

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

shouldRunLocally

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.

Return Value

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

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

 

Target Platforms


Show:
© 2015 Microsoft