Share via


ActivitySettingsPart.LoadActivitySettings Method

This method initializes activity UI controls to their default values.

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

Usage

'Usage
Dim instance As ActivitySettingsPart
Dim activity As Activity

instance.LoadActivitySettings(activity)

Syntax

'Declaration
Public MustOverride Sub LoadActivitySettings ( _
    activity As Activity _
)
public abstract void LoadActivitySettings (
    Activity activity
)
public:
virtual void LoadActivitySettings (
    Activity^ activity
) abstract
public abstract void LoadActivitySettings (
    Activity activity
)
public abstract function LoadActivitySettings (
    activity : Activity
)

Parameters

  • activity
    An instance of the current workflow activity. This provides a way to extract the values of the properties to display in the UI.

Example

The following code example sets the two textboxes in the UI to default values stored in class properties. For the complete code example, see Creating a User Interface for the Activity.

public override void LoadActivitySettings(Activity activity)
{
    RequestLoggingActivity LoggingActivity = activity as RequestLoggingActivity;
    if (null != LoggingActivity)
    {
        this.SetText("txtLogFilePath", LoggingActivity.LogFilePath);
        this.SetText("txtLogFileName", LoggingActivity.LogFileName);
    }
 }

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