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

Imports members from a vCard file. This function will import all the valid members into a particular group.

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

Syntax

C#
public DataTable ImportMembersFromVCard(
	HttpPostedFile postedFile,
	int selectedOption,
	bool chkPassword,
	ref int status,
	int groupId,
	int currentUserId,
	bool isCurrentUserAdmin
)
Visual Basic (Declaration)
Public Function ImportMembersFromVCard ( _
	postedFile As HttpPostedFile, _
	selectedOption As Integer, _
	chkPassword As Boolean, _
	ByRef status As Integer, _
	groupId As Integer, _
	currentUserId As Integer, _
	isCurrentUserAdmin As Boolean _
) As DataTable
Visual C++
public:
DataTable^ ImportMembersFromVCard(
	HttpPostedFile^ postedFile, 
	int selectedOption, 
	bool chkPassword, 
	int% status, 
	int groupId, 
	int currentUserId, 
	bool isCurrentUserAdmin
)

Parameters

postedFile
Type: System.Web..::.HttpPostedFile
The http posted file
selectedOption
Type: System..::.Int32
How the file is imported 1 = Overwrite officeclip information with the file imported. 2 = Do not import names already in officeclip. 3 = Allow duplicates to be merged with the OfficeClip information.
chkPassword
Type: System..::.Boolean
If true then send the password to all imported members
status
Type: System..::.Int32%
0 if successful, -1 the file is not in the vCard -2 the file is ill-formed -3 vCard file Version not supported
groupId
Type: System..::.Int32
Id of the group in which the members need to be imported.
currentUserId
Type: System..::.Int32
The current user id
isCurrentUserAdmin
Type: System..::.Boolean
Is the current user an administrator

Return Value

DataTable consisting of name email Address and status of the result of individual import of each member. The DataTable consists of the following columns.
  • name (System.String)Name of the Member being imported.
  • emailAddress (System.String)Email Address of the Member being imported.
  • status (System.Int32) This flag indicates the result of individual import into the Group. 0 if the import was successful -2 if any of the invited users could not be imported because an email could not be sent. -3 if any of the invited users could not be imported because an alert could be created. -4 The member can not be imported because accounting is enabled and the account where the user should belong could not be determined. -5 The member can not be imported because accounting is enabled and the user already belongs to another account. -6 The member can not be imported because accounting is enabled and the account has reached the number of users Limit. -7 The member can not be imported because the site license user Limit has been reached.

See Also