/// <summary> /// Check whether the container name is valid. If not throw an exception /// </summary> /// <param name="name">Container name</param> public static void ValidateContainerName(string name) { if (!NameUtil.IsValidContainerName(name)) { throw new ArgumentException(String.Format(CultureInfo.CurrentCulture, Resources.InvalidContainerName, name)); } }
public void SetDestinationContainer(IStorageBlobManagement channel, string containerName) { if (Container == null) { if (!NameUtil.IsValidContainerName(containerName)) { throw new ArgumentException(String.Format(Resources.InvalidContainerName, containerName)); } Container = channel.GetContainerReference(containerName); } }