This service is available via Telligent.Evolution.Extensibility.Apis.Get<Telligent.Evolution.Extensibility.Api.Version1.IMedia>()
and is defined in Telligent.Evolution.MediaGalleries.dll
Events
Events.AfterCreate
Handler
void MediaAfterCreateEventHandler(MediaAfterCreateEventArgs e);
Events.AfterDelete
Handler
void MediaAfterDeleteEventHandler(MediaAfterDeleteEventArgs e);
Events.AfterUpdate
Handler
void MediaAfterUpdateEventHandler(MediaAfterUpdateEventArgs e);
Events.BeforeCreate
Handler
void MediaBeforeCreateEventHandler(MediaBeforeCreateEventArgs e);
Events.BeforeDelete
Handler
void MediaBeforeDeleteEventHandler(MediaBeforeDeleteEventArgs e);
Events.BeforeUpdate
Handler
void MediaBeforeUpdateEventHandler(MediaBeforeUpdateEventArgs e);
Events.Download
Handler
void MediaDownloadEventHandler(MediaDownloadEventArgs e);
Events.Render
Handler
void MediaRenderEventHandler(MediaRenderEventArgs e);
Methods
Media Create(int mediaGalleryId, string name, string contentType, string fileName, MediaCreateOptions options = null);
Creates a new media post
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
mediaGalleryId | int | Media gallery Id | Required | ||
name | string | Name | Required | ||
contentType | string | The MIME content type of the attachment | Required | ||
fileName | string | File name | Required | ||
options | MediaCreateOptions | Optional parameter names are: Description, FileData, FileStream, FileUploadContext, FileUrl, Tags, IsFeatured, FeaturedImage, ExtendedAttributes | Optional |
Return Type
AdditionalInfo Delete(int fileId);
Deletes a media gallery post
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
fileId | int | File Id | Required |
Return Type
Media Get(int mediaGalleryId, int fileId);
Gets a media gallery post
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
mediaGalleryId | int | Media gallery Id | Required | ||
fileId | int | File Id | Required |
Return Type
Media Get(int fileId);
Gets a media gallery post
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
fileId | int | File Id | Required |
Return Type
Media Get(Guid contentId);
Gets a media gallery post
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
contentId | Guid | Content Id | Required |
Return Type
PagedList<Media> List(MediaListOptions options = null);
Lists media gallery posts
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
options | MediaListOptions | Optional parameter names are: GalleryId, GalleryIds, GroupId, IncludeSubGroups, IncludeUnpublished, ContentIds, PageSize, PageIndex, SortBy, SortOrder | Optional |
Return Type
Media Preview(int mediaGalleryId, string name, string contentType, string fileName, MediaCreateOptions options = null);
Previews a media gallery post
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
mediaGalleryId | int | Media gallery Id | Required | ||
name | string | Name | Required | ||
contentType | string | The MIME content type of the attachment | Required | ||
fileName | string | File name | Required | ||
options | MediaCreateOptions | Optional parameter names are: Description, FileData, FileStream, FileUploadContext, FileUrl, Tags, IsFeatured, FeaturedImage, ExtendedAttributes | Optional |
Return Type
Media Preview(int mediaGalleryId, int fileId, MediaUpdateOptions options = null);
Previews a media gallery post
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
mediaGalleryId | int | Media gallery Id | Required | ||
fileId | int | File Id | Required | ||
options | MediaUpdateOptions | Optional parameter names are: Name, Description, ContentType, FileName, FileData, FileStream, FileUploadContext, FileUrl, Tags, IsFeatured, FeaturedImage, ExtendedAttributes | Optional |
Return Type
Media Update(int mediaGalleryId, int fileId, MediaUpdateOptions options = null);
Updates a media post
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
mediaGalleryId | int | Media gallery Id | Required | ||
fileId | int | File Id | Required | ||
options | MediaUpdateOptions | Optional parameter names are: Name, Description, ContentType, FileName, FileData, FileStream, FileUploadContext, FileUrl, Tags, IsFeatured, FeaturedImage, ExtendedAttributes | Optional |