Class CollectionFolder
Specialized Folder class that points to a subset of the physical folders in the system.
It is created from the user-specific folders within the system root
Inheritance
System.Object
CollectionFolder
Assembly: MediaBrowser.Controller.dll
public sealed class CollectionFolder : Folder, IHasProviderIds, IHasLookupInfo<ItemLookupInfo>, IHasFolderGrouping, ICollectionFolder, IHasCollectionType
Properties
Declaration
[IgnoreDataMember]
public string CollectionType { get; }
Property Value
Type |
Description |
System.String |
|
Allow different display preferences for each collection folder
Declaration
[IgnoreDataMember]
public override Guid DisplayPreferencesId { get; }
Property Value
Type |
Description |
System.Guid |
The display prefs id.
|
Overrides
Declaration
[IgnoreDataMember]
public bool EnableItemChangeEvents { get; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
[IgnoreDataMember]
public override bool ForceDefaultAspectRatio { get; }
Property Value
Type |
Description |
System.Boolean |
|
Overrides
Declaration
[IgnoreDataMember]
public override bool IsHidden { get; }
Property Value
Type |
Description |
System.Boolean |
|
Overrides
Declaration
public static IJsonSerializer JsonSerializer { get; set; }
Property Value
Declaration
[IgnoreDataMember]
public long[] PhysicalFolderIds { get; set; }
Property Value
Type |
Description |
System.Int64[] |
The tags.
|
Declaration
[IgnoreDataMember]
public override bool SupportsCollections { get; }
Property Value
Type |
Description |
System.Boolean |
|
Overrides
Declaration
[IgnoreDataMember]
public override bool SupportsInheritedParentImages { get; }
Property Value
Type |
Description |
System.Boolean |
|
Overrides
Declaration
[IgnoreDataMember]
public override bool SupportsOwnedItems { get; }
Property Value
Type |
Description |
System.Boolean |
|
Overrides
Declaration
[IgnoreDataMember]
public override bool SupportsPeople { get; }
Property Value
Type |
Description |
System.Boolean |
|
Overrides
Declaration
[IgnoreDataMember]
public override bool SupportsTags { get; }
Property Value
Type |
Description |
System.Boolean |
|
Overrides
Declaration
[IgnoreDataMember]
public override bool SupportsThemeMedia { get; }
Property Value
Type |
Description |
System.Boolean |
|
Overrides
Declaration
[IgnoreDataMember]
public override bool SupportsUserData { get; }
Property Value
Type |
Description |
System.Boolean |
|
Overrides
Declaration
[IgnoreDataMember]
public override bool UpdateChildrenOnLockStateChange { get; }
Property Value
Type |
Description |
System.Boolean |
|
Overrides
Declaration
[IgnoreDataMember]
protected override bool ValidatesChildren { get; }
Property Value
Type |
Description |
System.Boolean |
|
Overrides
Declaration
public static IXmlSerializer XmlSerializer { get; set; }
Property Value
Methods
Declaration
public override bool CanDelete()
Returns
Type |
Description |
System.Boolean |
|
Overrides
Declaration
public void ClearCachedUserPermissions(long userId)
Parameters
Type |
Name |
Description |
System.Int64 |
userId |
|
Declaration
public override void FillItemLinks(List<(ItemLinkType, string, long)> itemLinks)
Parameters
Type |
Name |
Description |
System.Collections.Generic.List<System.ValueTuple<ItemLinkType, System.String, System.Int64>> |
itemLinks |
|
Overrides
Declaration
public override double GetDefaultPrimaryImageAspectRatio()
Returns
Type |
Description |
System.Double |
|
Overrides
GetIdsForAncestorIdsQuery(User, IDataContext)
Declaration
public override long[] GetIdsForAncestorIdsQuery(User user, IDataContext dataContext)
Parameters
Returns
Type |
Description |
System.Int64[] |
|
Overrides
GetItemIdsInternal(InternalItemsQuery, IDataContext)
Declaration
protected override long[] GetItemIdsInternal(InternalItemsQuery query, IDataContext dataContext)
Parameters
Returns
Type |
Description |
System.Int64[] |
|
Overrides
GetItemsForAncestorIdsQuery(User, IDataContext)
Declaration
public override BaseItem[] GetItemsForAncestorIdsQuery(User user, IDataContext dataContext)
Parameters
Returns
Overrides
GetItemsInternal(InternalItemsQuery, IDataContext)
Declaration
protected override QueryResult<BaseItem> GetItemsInternal(InternalItemsQuery query, IDataContext dataContext)
Parameters
Returns
Overrides
Declaration
public (string, SortOrder)[] GetLatestItemsOrderBy()
Returns
Type |
Description |
System.ValueTuple<System.String, SortOrder>[] |
|
Declaration
public LibraryOptions GetLibraryOptions()
Returns
GetLibraryOptions(IDataContext)
Declaration
public LibraryOptions GetLibraryOptions(IDataContext dataContext)
Parameters
Returns
GetLibraryOptions(Int64, IDataContext)
Declaration
public static LibraryOptions GetLibraryOptions(long libraryItemId, IDataContext dataContext)
Parameters
Type |
Name |
Description |
System.Int64 |
libraryItemId |
|
IDataContext |
dataContext |
|
Returns
GetPhysicalFolderIds(IDataContext)
Declaration
public long[] GetPhysicalFolderIds(IDataContext dataContext)
Parameters
Returns
Type |
Description |
System.Int64[] |
|
Declaration
public BaseItem[] GetPhysicalFolderItems(InternalItemsQuery query)
Parameters
Returns
GetPhysicalFolders(InternalItemsQuery, IDataContext)
Declaration
public QueryResult<BaseItem> GetPhysicalFolders(InternalItemsQuery query, IDataContext dataContext)
Parameters
Returns
Declaration
public override double? GetRefreshProgress()
Returns
Type |
Description |
System.Nullable<System.Double> |
|
Overrides
Declaration
public override List<ItemLinkType> GetSupportedItemLinkTypes()
Returns
Type |
Description |
System.Collections.Generic.List<ItemLinkType> |
|
Overrides
Declaration
public override bool IsSaveLocalImagesEnabled(LibraryOptions libraryOptions)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Overrides
Declaration
public override bool IsVisible(User user)
Parameters
Type |
Name |
Description |
User |
user |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
Declaration
public static void OnCollectionFolderChange(long libraryItemId)
Parameters
Type |
Name |
Description |
System.Int64 |
libraryItemId |
|
Declaration
public static void SaveLibraryOptions(long libraryItemId, LibraryOptions options)
Parameters
Type |
Name |
Description |
System.Int64 |
libraryItemId |
|
LibraryOptions |
options |
|
Declaration
public void UpdateLibraryOptions(LibraryOptions options)
Parameters
Events
Declaration
public static event EventHandler<GenericEventArgs<Tuple<CollectionFolder, LibraryOptions>>> LibraryOptionsUpdated
Event Type
Implements
Extension Methods