public static void ShareURL(string url, URLSharingServices urlSharingService) { if (!string.IsNullOrEmpty(url)) { TaskSettings taskSettings = TaskSettings.GetDefaultTaskSettings(); taskSettings.URLSharingServiceDestination = urlSharingService; UploadTask task = UploadTask.CreateShareURLTask(url, taskSettings); TaskManager.Start(task); } }
public static void ShareURL(string url, TaskSettings taskSettings = null) { if (!string.IsNullOrEmpty(url)) { if (taskSettings == null) { taskSettings = TaskSettings.GetDefaultTaskSettings(); } UploadTask task = UploadTask.CreateShareURLTask(url, taskSettings); TaskManager.Start(task); } }