CreateVote method

Adds a vote to a Poll Entry.

Syntax


C++
HRESULT CreateVote (
   LONG Index,
   BSTR WriteIn,
   IERUVote** ppVote)
Scripting languages
Set Vote = Object.CreateVote (
   Index as Long,
   WriteIn as String)

Parameters


Index

An index value of a member of the Votes collection, from 1 to the value of the collection's Count property. The value of Index is 0 for a write-in vote. WriteIn

Write-in choice. This parameter is ignored unless the value of Index is 0.

ppVote

Upon return, an IERUVote interface pointer to the newly-created vote.

Return value


C++

The return code.

Scripting languages

An IERUVote interface pointer to the newly-created vote.

Remarks


If the AllowWriteIn property is set to FALSE, creating a write-in vote returns the error EROOM_E_INVALIDOPERATION.

If the AllowMultipleVotes property is set to FALSE, creating more than one vote for the same User returns the error EROOM_E_INVALIDOPERATION.

Home

Interface

IERUPollEntry


See also

Polls