[This is preliminary documentation and is subject to change.]

Inserts a resource for a particular group and its related information into the database.

Namespace:  OfficeClip.DBLayer.Desktop
Assembly:  OfficeClip.DBLayer (in OfficeClip.DBLayer)
Version: 8.1.1.0

Syntax

C#
public int InsertResource(
	int groupId,
	ResourceInfo ri
)
Visual Basic (Declaration)
Public Function InsertResource ( _
	groupId As Integer, _
	ri As ResourceInfo _
) As Integer
Visual C++
public:
int InsertResource(
	int groupId, 
	ResourceInfo^ ri
)

Parameters

groupId
Type: System..::.Int32
The unique id for the group.
ri
Type: OfficeClip.BusinessLayer.Desktop..::.ResourceInfo
Instance of the ResourceInfo object containing all information related to the resource.

Return Value

Id of the newly created resource when successful, -1 in case of an error.

See Also