Freigeben über


ActivitySettingsPart.GenerateActivityOnWorkflow Method

This method is called when a user clicks the Save button in the Workflow Designer. It should return an instance of the activity that has its properties set to the values entered into the controls used in the UI of the activity.

Namespace: Microsoft.IdentityManagement.WebUI.Controls
Assembly: Microsoft.IdentityManagement.WFExtensionInterfaces (in microsoft.identitymanagement.wfextensioninterfaces.dll)

Usage

'Usage
Dim instance As ActivitySettingsPart
Dim workflow As SequentialWorkflow
Dim returnValue As Activity

returnValue = instance.GenerateActivityOnWorkflow(workflow)

Syntax

'Declaration
Public MustOverride Function GenerateActivityOnWorkflow ( _
    workflow As SequentialWorkflow _
) As Activity
public abstract Activity GenerateActivityOnWorkflow (
    SequentialWorkflow workflow
)
public:
virtual Activity^ GenerateActivityOnWorkflow (
    SequentialWorkflow^ workflow
) abstract
public abstract Activity GenerateActivityOnWorkflow (
    SequentialWorkflow workflow
)
public abstract function GenerateActivityOnWorkflow (
    workflow : SequentialWorkflow
) : Activity

Parameters

  • workflow
    Represents the parent workflow of the activity.

Return Value

Returns Activity.

Example

The following code example creates a new instance of the activity that has its "LogFilePath" and "LogFileName" custom properties set to the values entered into the corresponding textboxes of the activity. For the complete code example, see Creating a User Interface for the Activity.

public override Activity GenerateActivityOnWorkflow(SequentialWorkflow workflow)
{
    if (!this.ValidateInputs())
    {
        return null;
    }
    RequestLoggingActivity LoggingActivity = new RequestLoggingActivity();
    LoggingActivity.LogFilePath = this.GetText("txtLogFilePath");
    LoggingActivity.LogFileName = this.GetText("txtLogFileName");
    return LoggingActivity;
}

Remarks

This API is currently not supported.

Thread Safety

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

Platforms

Target Platforms

Windows 2008 x64 Edition

Change History

See Also

Reference

ActivitySettingsPart Class
ActivitySettingsPart Members
Microsoft.IdentityManagement.WebUI.Controls Namespace