namespace Umbraco.Core.Models
{
public interface IMedia : IContentBase
{
///
/// Gets the ContentType used by this Media object
///
IMediaType ContentType { get; }
///
/// Changes the for the current content object
///
/// New ContentType for this content
/// Leaves PropertyTypes intact after change
void ChangeContentType(IMediaType contentType);
///
/// Changes the for the current content object and removes PropertyTypes,
/// which are not part of the new ContentType.
///
/// New ContentType for this content
/// Boolean indicating whether to clear PropertyTypes upon change
void ChangeContentType(IMediaType contentType, bool clearProperties);
}
}