Interface IMediaImportService
Namespace: Umbraco.Cms.Core.Services
Assembly: Umbraco.Core.dll
Syntax
public interface IMediaImportService
Methods
View SourceImportAsync(String, Stream, Nullable<Guid>, String, Guid)
Declaration
Task<IMedia> ImportAsync(string fileName, Stream fileStream, Guid? parentId, string mediaTypeAlias, Guid userKey)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | fileName | |
| Stream | fileStream | |
| System.Nullable<Guid> | parentId | |
| System.String | mediaTypeAlias | |
| Guid | userKey |
Returns
| Type | Description |
|---|---|
| Task<IMedia> |