public void SetStorageItems(IEnumerable <IStorageItem> storageItems) { if (storageItems == null || !storageItems.Any()) { throw new ArgumentException("23333333333333", nameof(storageItems)); } Items.Add(ShareSourceItem.FromStorageItems(storageItems)); }
public void SetDeferredContent(string deferredDataFormatId, Func <Task <object> > getDeferredDataAsyncFunc) { if (string.IsNullOrEmpty(deferredDataFormatId)) { throw new ArgumentException("23333333333333", nameof(deferredDataFormatId)); } Items.Add(ShareSourceItem.FromDeferredContent(deferredDataFormatId, getDeferredDataAsyncFunc)); }
public void SetImage(StorageFile image) { if (image == null) { throw new ArgumentNullException(nameof(image)); } Items.Add(ShareSourceItem.FromImage(image)); }
public void SetHtml(string html) { if (string.IsNullOrEmpty(html)) { throw new ArgumentException("23333333333333", nameof(html)); } Items.Add(ShareSourceItem.FromHtml(html)); }
public void SetApplicationLink(Uri applicationLink) { if (applicationLink == null) { throw new ArgumentNullException(nameof(applicationLink)); } Items.Add(ShareSourceItem.FromApplicationLink(applicationLink)); }
public void SetWebLink(Uri webLink) { if (webLink == null) { throw new ArgumentNullException(nameof(webLink)); } Items.Add(ShareSourceItem.FromWebLink(webLink)); }
public void SetText(string text) { if (string.IsNullOrEmpty(text)) { throw new ArgumentException("23333333333333", nameof(text)); } Items.Add(ShareSourceItem.FromText(text)); }