<< Click to Display Table of Contents >>

AddCategory

하위 카테고리를 추가합니다.

Prototype

bool AddCategory(string CategoryFullPath, string NewCategoryName, string Comment)

Parameters

CategoryFullPath

카테고리 전체 경로

NewCategoryName

카테고리 이름

Comment

주석

Reference

하위 카테고리가 추가된 경우 true가 리턴되고, 실패한 경우 false가 리턴됩니다.

Example

function AddCategory(){

   var rep = OZCreator.GetBuiltInObject(OZBuiltInObject.REPOSITORY);

   var login = rep.Login("admin","admin");

   if (login) {

       var isOK = rep.AddCategory("/", "abc", "comment");

       _DEBUG("AddCategory="+isOK);

       rep.Logout();

   }

}