SessionDataExtensionsFilterItemsByUserPermissionsT Method
Filters the items to the environment and sub-environments the currentUser has access to.
If the currentUser is in the main environment, no filter will be applied.
Namespace: MobileTrack.DataContainers.ExtensionsAssembly: MobileTrack.DataContainers (in MobileTrack.DataContainers.dll) Version: 0.7+1dadc87dcf0a0f837e19a3ce2deb7c1cd85375d1
public static List<T> FilterItemsByUserPermissions<T>(
this UserSessionData currentUser,
Dictionary<Guid, T> items
)
where T : IIdLabel, IHasEnvironment
- currentUser UserSessionData
- The current user
- items DictionaryGuid, T
- Item stack to filter
- T
[Missing <typeparam name="T"/> documentation for "M:MobileTrack.DataContainers.Extensions.SessionDataExtensions.FilterItemsByUserPermissions``1(MobileTrack.DataContainers.Models.UserSessionData,System.Collections.Generic.Dictionary{System.Guid,``0})"]
ListTFiltered dictionaryIn Visual Basic and C#, you can call this method as an instance method on any object of type
UserSessionData. 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).