ActivitySettingsPart.PersistSettings Method
Saves the current UI control settings.
Namespace: Microsoft.IdentityManagement.WebUI.Controls
Assembly: Microsoft.IdentityManagement.WFExtensionInterfaces (in microsoft.identitymanagement.wfextensioninterfaces.dll)
Usage
'Usage
Dim instance As ActivitySettingsPart
Dim returnValue As ActivitySettingsPartData
returnValue = instance.PersistSettings
Syntax
'Declaration
Public MustOverride Function PersistSettings As ActivitySettingsPartData
public abstract ActivitySettingsPartData PersistSettings ()
public:
virtual ActivitySettingsPartData^ PersistSettings () abstract
public abstract ActivitySettingsPartData PersistSettings ()
public abstract function PersistSettings () : ActivitySettingsPartData
Return Value
Returns ActivitySettingsPartData.
Example
The following code example returns an ActivitySettingsPartData object that contains the values of two textboxes that that are defined in the custom activity. For the complete code example, see Creating a User Interface for the Activity.
public override ActivitySettingsPartData PersistSettings()
{
ActivitySettingsPartData data = new ActivitySettingsPartData();
data["LogFilePath"] = this.GetText("txtLogFilePath");
data["LogFileName"] = this.GetText("txtLogFileName");
return data;
}
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
RestoreSettings