Windows desktop applications
Collapse the table of content
Expand the table of content
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.

ActivityGenerator.GenerateFromName Method (String, String)


Updated: April 27, 2016

Applies To: Windows PowerShell

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)

Public Shared Function GenerateFromName (
	command As String,
	activityNamespace As String
) As String


Type: System.String

The command name to generate.

Type: System.String

The namespace that will contain the activity.

Return Value

Type: System.String

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

Return to top

Community Additions

© 2016 Microsoft