/// <summary> /// Initializes a new instance of the <see cref="MultimediaType"/> class. /// </summary> /// <param name="client"><see cref="T:TcmCoreService.Client" /></param> /// <param name="multimediaTypeData"><see cref="T:Tridion.ContentManager.CoreService.Client.MultimediaTypeData" /></param> protected MultimediaType(Client client, MultimediaTypeData multimediaTypeData) : base(client, multimediaTypeData) { if (multimediaTypeData == null) throw new ArgumentNullException("multimediaTypeData"); mMultimediaTypeData = multimediaTypeData; }
/// <summary> /// Initializes a new instance of the <see cref="MultimediaType"/> class. /// </summary> /// <param name="client"><see cref="T:TcmCoreService.Client" /></param> /// <param name="multimediaTypeData"><see cref="T:Tridion.ContentManager.CoreService.Client.MultimediaTypeData" /></param> protected MultimediaType(Client client, MultimediaTypeData multimediaTypeData) : base(client, multimediaTypeData) { if (multimediaTypeData == null) { throw new ArgumentNullException("multimediaTypeData"); } mMultimediaTypeData = multimediaTypeData; }
/// <summary> /// Reload the <see cref="MultimediaType" /> with the specified <see cref="T:Tridion.ContentManager.CoreService.Client.MultimediaTypeData" /> /// </summary> /// <param name="multimediaTypeData"><see cref="T:Tridion.ContentManager.CoreService.Client.MultimediaTypeData" /></param> protected void Reload(MultimediaTypeData multimediaTypeData) { if (multimediaTypeData == null) { throw new ArgumentNullException("multimediaTypeData"); } mMultimediaTypeData = multimediaTypeData; base.Reload(multimediaTypeData); }
public static MultimediaTypeResult From(MultimediaTypeData item) { var result = new MultimediaTypeResult { MimeType = TextEntry.From(item.MimeType, Resources.LabelMimeType), FileExtensions = TextEntry.From(string.Join(", ", item.FileExtensions), Resources.LabelFileExtensions) }; AddCommonProperties(item, result); return result; }
/// <summary> /// Reload the <see cref="MultimediaType" /> with the specified <see cref="T:Tridion.ContentManager.CoreService.Client.MultimediaTypeData" /> /// </summary> /// <param name="multimediaTypeData"><see cref="T:Tridion.ContentManager.CoreService.Client.MultimediaTypeData" /></param> protected void Reload(MultimediaTypeData multimediaTypeData) { if (multimediaTypeData == null) throw new ArgumentNullException("multimediaTypeData"); mMultimediaTypeData = multimediaTypeData; base.Reload(multimediaTypeData); }