Version

Perform Method

Performs the action. If successful in performing the action then returns an action that can undo the action performed by this action. If failure occurs then returns null.
Syntax
'Declaration
 
Protected Friend MustOverride Function Perform( _
   ByVal context As Object _
) As ActionHistory.ActionBase
protected internal abstract ActionHistory.ActionBase Perform( 
   object context
)

Parameters

context
Opaque piece of data that the derived action class can use to determine what is acting upon. Note that the derived classes may require this parameter to be an instance of a specific class.

Return Value

Returns an action that can be used to undo the results of this action. If the action was performed but cannot be undone then ActionHistory.NoUndoAction should be returned. If the action could not be performed then null should be returned.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also