Version

UpdateResource(Resource) Method

Modifies a Resource that already exists in the database.
Syntax
'Declaration
 
Public Overloads Sub UpdateResource( _
   ByVal resource As Resource _
) 
public void UpdateResource( 
   Resource resource
)

Parameters

resource
An initialized resource loaded from the data source.
Exceptions
ExceptionDescription
System.ArgumentNullExceptionThrown when the resource was supplied as a null reference (or Nothing in Visual Basic .NET). A Resource must be non-null to specify a DataKey and have property values with which to update the data store.
Remarks

The supplied resource must have a valid DataKey that can be used to identify it's current place in the Resource table. This method updates the column values in a single row of the Resource table based on the DataKey. It does not perform extra checking to confirm that the supplied Resource instance matches the row it finds within the Resource table field-for-field.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, 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