libsbmlcs.Compartment.setName C# (CSharp) Method

setName() public method

public setName ( string name ) : int
name string
return int
        public new int setName(string name)
        {
            int ret = libsbmlPINVOKE.Compartment_setName(swigCPtr, name);
            if (libsbmlPINVOKE.SWIGPendingException.Pending) throw libsbmlPINVOKE.SWIGPendingException.Retrieve();
            return ret;
        }

Usage Example

 public void test_Compartment_setName2()
 {
     Compartment c = new  Compartment(1,2);
       int i = c.setName( "1cell");
       assertTrue( i == libsbml.LIBSBML_INVALID_ATTRIBUTE_VALUE );
       assertEquals( false, c.isSetName() );
       i = c.unsetName();
       assertTrue( i == libsbml.LIBSBML_OPERATION_SUCCESS );
       assertEquals( false, c.isSetName() );
       c = null;
 }