Class AttachmentController
Implementation of IAttachmentController.
Inheritance
System.Object
AttachmentController
Implements
Namespace: DotNetNuke.Entities.Content
Assembly: DotNetNuke.dll
Syntax
public class AttachmentController : object, IAttachmentController
Constructors
| Improve this Doc View SourceAttachmentController()
Initializes a new instance of the AttachmentController class.
Declaration
public AttachmentController()
AttachmentController(IContentController)
Initializes a new instance of the AttachmentController class.
Declaration
public AttachmentController(IContentController contentController)
Parameters
Type | Name | Description |
---|---|---|
IContentController | contentController |
Methods
| Improve this Doc View SourceAddFilesToContent(Int32, IEnumerable<IFileInfo>)
Implementation of IAttachmentController.
Declaration
public void AddFilesToContent(int contentItemId, IEnumerable<IFileInfo> fileInfo)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | contentItemId | |
IEnumerable<IFileInfo> | fileInfo |
AddFileToContent(Int32, IFileInfo)
Add a generic file to a ContentItem.
Declaration
public void AddFileToContent(int contentItemId, IFileInfo fileInfo)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | contentItemId | The content item. |
IFileInfo | fileInfo | A file registered in the DotNetNuke. FileManager |
AddImagesToContent(Int32, IEnumerable<IFileInfo>)
Implementation of IAttachmentController.
Declaration
public void AddImagesToContent(int contentItemId, IEnumerable<IFileInfo> fileInfo)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | contentItemId | |
IEnumerable<IFileInfo> | fileInfo |
AddImageToContent(Int32, IFileInfo)
Attach an image to a ContentItem.
Declaration
public void AddImageToContent(int contentItemId, IFileInfo fileInfo)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | contentItemId | The content item. |
IFileInfo | fileInfo | A file registered in the DotNetNuke. FileManager |
AddVideosToContent(Int32, IEnumerable<IFileInfo>)
Implementation of IAttachmentController.
Declaration
public void AddVideosToContent(int contentItemId, IEnumerable<IFileInfo> fileInfo)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | contentItemId | |
IEnumerable<IFileInfo> | fileInfo |
AddVideoToContent(Int32, IFileInfo)
Add a video file to a ContentItem.
Declaration
public void AddVideoToContent(int contentItemId, IFileInfo fileInfo)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | contentItemId | The content item. |
IFileInfo | fileInfo | A file registered in the DotNetNuke. FileManager |
GetFilesByContent(Int32)
Implementation of IAttachmentController.
Declaration
public IList<IFileInfo> GetFilesByContent(int contentItemId)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | contentItemId |
Returns
Type | Description |
---|---|
IList<IFileInfo> |
GetImagesByContent(Int32)
Implementation of IAttachmentController.
Declaration
public IList<IFileInfo> GetImagesByContent(int contentItemId)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | contentItemId |
Returns
Type | Description |
---|---|
IList<IFileInfo> |
GetVideosByContent(Int32)
Implementation of IAttachmentController.
Declaration
public IList<IFileInfo> GetVideosByContent(int contentItemId)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | contentItemId |
Returns
Type | Description |
---|---|
IList<IFileInfo> |