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

Gets the Departments for an organization identified by grpId.

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

Syntax

C#
public GroupInfo[] GetDepartments(
	int orgId
)
Visual Basic (Declaration)
Public Function GetDepartments ( _
	orgId As Integer _
) As GroupInfo()
Visual C++
public:
array<GroupInfo^>^ GetDepartments(
	int orgId
)

Parameters

orgId
Type: System..::.Int32
Id of the organization for which all the departments are to be returned.

Return Value

SqlDataReader containing the ids and names of all the departments for a particular orgnaization. The SqlDataReader has the following columns.
  • GroupId (System.Int32)Id of the department.
  • groupName (System.String)Name of the department.

Remarks

If the id passed is not that of an orgnization, then an empty SqlDataReader will be returned.

See Also