示例#1
0
        /// <summary>Initialize a new instance of the RssPhotoAlbum class</summary>
        /// <param name="link">Link to the Photo Album</param>
        /// <param name="photoAlbumCategory">The category of the Photo Album to add</param>
        public RssPhotoAlbum(Uri link, RssPhotoAlbumCategory photoAlbumCategory)
        {
            NamespacePrefix = "photoAlbum";
            NamespaceURL    = new Uri("http://xml.innothinx.com/photoAlbum");

            ChannelExtensions.Add(new RssModuleItem("link", true, RssDefault.Check(link).ToString()));

            ItemExtensions.Add(photoAlbumCategory);
        }
示例#2
0
 /// <summary>Adds a sepecified category to this collection.</summary>
 /// <param name="category">The category to add.</param>
 /// <returns>The zero-based index of the added item.</returns>
 public int Add(RssPhotoAlbumCategory category)
 {
     return(base.Add(category));
 }