ActivitySettingsPart.RestoreSettings Method
Restores UI control settings stored in the data parameter.
Namespace: Microsoft.IdentityManagement.WebUI.Controls
Assembly: Microsoft.IdentityManagement.WFExtensionInterfaces (in microsoft.identitymanagement.wfextensioninterfaces.dll)
Usage
'Usage
Dim instance As ActivitySettingsPart
Dim data As ActivitySettingsPartData
instance.RestoreSettings(data)
Syntax
'Declaration
Public MustOverride Sub RestoreSettings ( _
data As ActivitySettingsPartData _
)
public abstract void RestoreSettings (
ActivitySettingsPartData data
)
public:
virtual void RestoreSettings (
ActivitySettingsPartData^ data
) abstract
public abstract void RestoreSettings (
ActivitySettingsPartData data
)
public abstract function RestoreSettings (
data : ActivitySettingsPartData
)
Parameters
- data
Contains data about the values of UI controls.
Example
The following code example sets the textbox values for an activity that has "txtLogFilePath" and "txtLogFileName" textboxes in the UI. For the complete code example, see Creating a User Interface for the Activity.
public override void RestoreSettings(ActivitySettingsPartData data)
{
if (null != data)
{
this.SetText("txtLogFilePath", (string)data["LogFilePath"]);
this.SetText("txtLogFileName", (string)data["LogFileName"]);
}
}
Remarks
Typically the ActivitySettingsPartData object passed as a parameter to this function was originally returned as the return value of the PersistSettings method.
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