View Source
Media service extension methods
Inheritance
System.Object
Assembly: Umbraco.Core.dll
public static class MediaServiceExtensions
Methods
View Source
Declaration
public static IMedia CreateMedia(this IMediaService mediaService, string name, Udi parentId, string mediaTypeAlias, int userId = -1)
Parameters
Type |
Name |
Description |
IMediaService |
mediaService |
|
System.String |
name |
|
Udi |
parentId |
|
System.String |
mediaTypeAlias |
|
System.Int32 |
userId |
|
Returns
View Source
Declaration
public static IEnumerable<IMedia> GetByIds(this IMediaService mediaService, IEnumerable<Udi> ids)
Parameters
Returns
Type |
Description |
IEnumerable<IMedia> |
|