/// <summary> /// Loads the media objects from <paramref name="container"/>. /// </summary> /// <param name="container"> /// The container from which to load media objects. /// </param> /// <param name="properties"> /// The properties of the media objects to load. Use this property to load only needed properties instead of loading all of them. It will reduce the server and network load. /// All properties are listed here: <see cref="MediaObject.Properties"/>. /// </param> /// <returns> /// A list of media objects loaded from the <paramref name="container"/>. /// </returns> /// <exception cref="ArgumentNullException"> /// <paramref name="container"/> is <c>null</c>. /// </exception> /// <exception cref="MediaServerException"> /// An error occurred when receiving result from media server. /// </exception> public async Task <IEnumerable <MediaObject> > BrowseAsync(MediaContainer container, params string[] properties) { container.EnsureNotNull("container"); return(await this.BrowseAsync(container.Id, properties)); }