Subtext.Framework.XmlRpc.MetaWeblog.newCategory C# (CSharp) Method

newCategory() public method

public newCategory ( string blogid, string username, string password, WordpressCategory category ) : int
blogid string
username string
password string
category WordpressCategory
return int
        public int newCategory(string blogid, string username, string password, WordpressCategory category)
        {
            LinkCategory newCategory = new LinkCategory();
            newCategory.CategoryType = CategoryType.PostCollection;
            newCategory.Title = category.name;
            newCategory.IsActive = true;
            newCategory.Description = category.name;

            newCategory.Id = Links.CreateLinkCategory(newCategory);

            return newCategory.Id;
        }