Class MediaLibraryFilesTab
Media library files page.
public sealed class MediaLibraryFilesTab : Page<MediaLibraryFilesClientProperties>, IPage
- Inheritance
-
objectMediaLibraryFilesTab
- Implements
- Inherited Members
- Extension Methods
Constructors
MediaLibraryFilesTab(IInfoProvider<MediaLibraryInfo>)
Initializes a new instance of MediaLibraryFilesTab.
public MediaLibraryFilesTab(IInfoProvider<MediaLibraryInfo> mediaLibraryProvider)
Parameters
mediaLibraryProvider
IInfoProvider<MediaLibraryInfo>
Properties
LibraryId
ID of the library.
[PageParameter(typeof(IntPageModelBinder))]
public int LibraryId { get; set; }
Property Value
- int
Methods
ConfigureTemplateProperties(MediaLibraryFilesClientProperties)
Gets the object representing client side template properties.
public override Task<MediaLibraryFilesClientProperties> ConfigureTemplateProperties(MediaLibraryFilesClientProperties properties)
Parameters
properties
MediaLibraryFilesClientPropertiesInitialized properties object.
Returns
CreateAssetFolder(AssetFolderFormSubmissionCommandArguments, CancellationToken)
Creates asset folders.
public Task<ICommandResponse<AssetFolderFormSubmissionCommandResult>> CreateAssetFolder(AssetFolderFormSubmissionCommandArguments args, CancellationToken cancellationToken)
Parameters
args
AssetFolderFormSubmissionCommandArgumentscancellationToken
CancellationToken
Returns
DeleteAsset(AssetCommandArguments)
Deletes asset from media library.
public Task<ICommandResponse> DeleteAsset(AssetCommandArguments args)
Parameters
Returns
- Task<ICommandResponse>
DeleteAssetFolder(DeleteAssetFolderCommandArguments)
Deletes asset folder.
public Task<ICommandResponse> DeleteAssetFolder(DeleteAssetFolderCommandArguments args)
Parameters
Returns
- Task<ICommandResponse>
GetAssetFolderForm(CancellationToken)
Creates form items for asset folder creation.
public Task<ICommandResponse<GetAssetFolderFormCommandResult>> GetAssetFolderForm(CancellationToken cancellationToken)
Parameters
cancellationToken
CancellationToken
Returns
LoadAssetFolders(LoadAssetFoldersCommandArguments)
Loads asset folders.
public Task<ICommandResponse<LoadAssetFoldersResult>> LoadAssetFolders(LoadAssetFoldersCommandArguments args)
Parameters
Returns
LoadAssetItems(LoadAssetItemsCommandArguments)
Loads asset items.
public Task<ICommandResponse<LoadAssetItemsResult>> LoadAssetItems(LoadAssetItemsCommandArguments args)
Parameters
Returns
MoveAsset(MoveAssetCommandArguments)
Moves specified asset to specified location.
public Task<ICommandResponse<MoveAssetCommandResult>> MoveAsset(MoveAssetCommandArguments args)
Parameters
args
MoveAssetCommandArgumentsMove command arguments.
Returns
RenameAssetFolder(RenameAssetFolderFormSubmissionCommandArguments, CancellationToken)
Renames asset folder.
public Task<ICommandResponse<AssetFolderFormSubmissionCommandResult>> RenameAssetFolder(RenameAssetFolderFormSubmissionCommandArguments args, CancellationToken cancellationToken)
Parameters
args
RenameAssetFolderFormSubmissionCommandArgumentscancellationToken
CancellationToken
Returns
UpdateAssetBinary(UpdateAssetBinaryCommandArguments)
Updates media library file's binary data.
public Task<ICommandResponse<UpdateAssetBinaryCommandResult>> UpdateAssetBinary(UpdateAssetBinaryCommandArguments args)
Parameters
args
UpdateAssetBinaryCommandArgumentsUpdateBinary command arguments.
Returns
UploadAssets(UploadAssetsCommandArguments)
Uploads files to media library.
public Task<ICommandResponse<UploadAssetsCommandResult>> UploadAssets(UploadAssetsCommandArguments args)
Parameters
args
UploadAssetsCommandArgumentsUpload command arguments.
Returns
ValidatePage()
Validates the page state prior invocation of the ConfigurePage() method.
public override Task<PageValidationResult> ValidatePage()
Returns
- Task<PageValidationResult>