CosmosExtensionsRetrieveGlobalAutoCompleteT Method
This method is used for the search bar on top of the screen in the Portal;
it retrieves 3 items for that datatype where the
query contains a part of the
Label.
(not case-sensitive). The items are also filtered by the user's environment scope if the user doesn't have the permission to view all environments.
Namespace: MobileTrack.DataContainers.ExtensionsAssembly: MobileTrack.DataContainers (in MobileTrack.DataContainers.dll) Version: 0.8+34f1bbd8dc6b32752cfce829cbed66e15113d7ba
internal static Task<List<BusinessObjectDto>> RetrieveGlobalAutoComplete<T>(
this ItemBaseRepository<T> repository,
UserSessionData user,
string query,
string[] properties,
CancellationToken cancellationToken
)
where T : IIdLabel
- repository ItemBaseRepositoryT
- Item repository to get the items from.
- user UserSessionData
- Current user
- query String
-
Query to filter on. We might later extend this functionality to allow for precise searches.
For now, it's only representing the label of the item.
- properties String
- Properties to retrieve
- cancellationToken CancellationToken
- Cancellation token.
- T
-
Data item to retrieve. It must be a business object, deriving from IIdLabel
TaskListBusinessObjectDtoFound items (or an empty
ListT if nothing was found)In Visual Basic and C#, you can call this method as an instance method on any object of type
ItemBaseRepositoryT. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).