Class ContentFolderInfoExtensions
- Namespace
- CMS.ContentEngine
- Assembly
- CMS.ContentEngine.dll
Contains extension methods for ContentFolderInfo's IInfoProvider<TInfo>.
public static class ContentFolderInfoExtensions
- Inheritance
-
objectContentFolderInfoExtensions
Methods
GetRoot(IInfoProvider<ContentFolderInfo>)
Retrieves the root content folder.
[Obsolete("Method is deprecated and will be removed in the next version. Use GetRootAsync(string, CancellationToken) instead.")]
[ObsoleteSince(30, 0)]
public static ContentFolderInfo GetRoot(this IInfoProvider<ContentFolderInfo> infoProvider)
Parameters
infoProvider
IInfoProvider<ContentFolderInfo>
Returns
GetRoot(IInfoProvider<ContentFolderInfo>, string)
Retrieves the root content folder of a workspace.
public static ContentFolderInfo GetRoot(this IInfoProvider<ContentFolderInfo> infoProvider, string workspaceName)
Parameters
infoProvider
IInfoProvider<ContentFolderInfo>workspaceName
string
Returns
GetRootAsync(IInfoProvider<ContentFolderInfo>, string, CancellationToken)
Retrieves the root content folder of a workspace asynchronously.
public static Task<ContentFolderInfo> GetRootAsync(this IInfoProvider<ContentFolderInfo> infoProvider, string workspaceName, CancellationToken cancellationToken = default)
Parameters
infoProvider
IInfoProvider<ContentFolderInfo>workspaceName
stringcancellationToken
CancellationToken
Returns
- Task<ContentFolderInfo>
GetRootAsync(IInfoProvider<ContentFolderInfo>, CancellationToken)
Retrieves the root content folder asynchronously.
[Obsolete("Method is deprecated and will be removed in the next version. Use GetRootAsync(string, CancellationToken) instead.")]
[ObsoleteSince(30, 0)]
public static Task<ContentFolderInfo> GetRootAsync(this IInfoProvider<ContentFolderInfo> infoProvider, CancellationToken cancellationToken = default)
Parameters
infoProvider
IInfoProvider<ContentFolderInfo>cancellationToken
CancellationToken
Returns
- Task<ContentFolderInfo>