Version

BeginEdit(Resource,DataErrorInfo) Method

Begins modifications to a Resource object.
Syntax
'Declaration
 
Public Overloads Overridable Function BeginEdit( _
   ByVal resource As Resource, _
   ByRef errorInfo As DataErrorInfo _
) As Boolean
public virtual bool BeginEdit( 
   Resource resource,
   out DataErrorInfo errorInfo
)

Parameters

resource
Resource object that is to be modified.
errorInfo
If there's an error this will be set to a new DataErrorInfo object with the error information.

Return Value

A value indicating whether the operation succeeded.
Remarks

Note: BeginEdit cannot be called more than once without an intervening call to CancelEdit or EndEdit. Successive BeginEdit calls will result an error and return false.

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