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

Inserts the polls into the database.

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

Syntax

C#
public int Insert(
	string message,
	DateTime expires,
	bool isSecured,
	bool isAnonymous,
	bool isMultipleChoice,
	string[] choice,
	string docIdList,
	int userId,
	int groupId
)
Visual Basic (Declaration)
Public Function Insert ( _
	message As String, _
	expires As DateTime, _
	isSecured As Boolean, _
	isAnonymous As Boolean, _
	isMultipleChoice As Boolean, _
	choice As String(), _
	docIdList As String, _
	userId As Integer, _
	groupId As Integer _
) As Integer
Visual C++
public:
int Insert(
	String^ message, 
	DateTime expires, 
	bool isSecured, 
	bool isAnonymous, 
	bool isMultipleChoice, 
	array<String^>^ choice, 
	String^ docIdList, 
	int userId, 
	int groupId
)

Parameters

message
Type: System..::.String
The poll Description.
expires
Type: System..::.DateTime
Date and Time when the poll expires, if empty then it is manual expiration and the database value is set to null.
isSecured
Type: System..::.Boolean
Is the poll Secured (poll results are not shown before the polling is over).
isAnonymous
Type: System..::.Boolean
Is the poll Anonymous (names are not shown in anonymous poll).
isMultipleChoice
Type: System..::.Boolean
Users can select more than one poll choices.
choice
Type: array<System..::.String>[]()[]
All the poll choices in a string.
docIdList
Type: System..::.String
Comma delimited list of document ids of all the documents attached with this poll.
userId
Type: System..::.Int32
The unique id of the user
groupId
Type: System..::.Int32
The unique id of the organization

Return Value

The pollId of the poll inserted.

See Also