Click or drag to resize

ISiteAssetsAssignedToUser Method


Retrieves a collection of Assets assigned to a specific User, in a paginated fashion.

Namespace: Ingeniux.CMS
Assembly: Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 10.6.492
Syntax
IEnumerable<IAsset> AssetsAssignedToUser(
	IUser user,
	out int count,
	bool includeGroups = false,
	int pageSize = -1,
	int startIndex = -1
)

Parameters

user  IUser
The User that Assets are assigned to
count  Int32
Outputs total count of entries
includeGroups  Boolean  (Optional)
Whether to include Assets that are assigned to the Groups the User belongs to
pageSize  Int32  (Optional)
Number of entries to return. If not provided, returns all entries.
startIndex  Int32  (Optional)
Starting index of entries. If not provided, starts from the first entry.

Return Value

IEnumerableIAsset
Collection of Assets assigned to the specified User
Remarks

When the "user" parameter value is null, returns empty collection, with "count" parameter output 0.

See Also