<< Click to Display Table of Contents >>

DeleteCategory

카테고리를 삭제합니다.

Prototype

bool DeleteCategory(string CategoryFullPath, string Comment)

Parameters

CategoryFullPath

카테고리 전체 경로

Comment

주석

Reference

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

Example

function DeleteCategory(){

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

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

   if (login) {

       var categoryFullPath = "/abc";

       var result = rep.DeleteCategory(categoryFullPath,"comment");

       if (result == true) {

           _DEBUG("result="+result);

       } else {

           _DEBUG("result="+result+" ["+rep.GetLastErrorCode()+"] "+rep.GetErrorMessageByCode(rep.GetLastErrorCode()));

       }

       rep.Logout();

   }

}