private void DetachMedia(MediaItem mediaItem) { MediaUri mediaUri = MediaUri.Parse(mediaItem); Media media = MediaManager.GetMedia((mediaUri)); media.ReleaseStream(); Context.ClientPage.SendMessage(this, "item:refresh(type=attachment)"); }
No comments:
Post a Comment