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

Insert a new notice into the database for a particular user.

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

Syntax

C#
public int InsertNotice(
	int userId,
	string noticeDesc,
	DateTime fromDate,
	DateTime toDate
)
Visual Basic (Declaration)
Public Function InsertNotice ( _
	userId As Integer, _
	noticeDesc As String, _
	fromDate As DateTime, _
	toDate As DateTime _
) As Integer
Visual C++
public:
int InsertNotice(
	int userId, 
	String^ noticeDesc, 
	DateTime fromDate, 
	DateTime toDate
)

Parameters

userId
Type: System..::.Int32
The unique id of the user.
noticeDesc
Type: System..::.String
Notice Description.
fromDate
Type: System..::.DateTime
The datetime from which the notice should become Active.
toDate
Type: System..::.DateTime
The datetime up to which the notice should remain Active.

Return Value

Returns the ID of the notice created if successful else returns -1.

See Also