libsbmlcs.SpeciesType.setId C# (CSharp) Method

setId() public method

public setId ( string sid ) : int
sid string
return int
        public new int setId(string sid)
        {
            int ret = libsbmlPINVOKE.SpeciesType_setId(swigCPtr, sid);
            if (libsbmlPINVOKE.SWIGPendingException.Pending) throw libsbmlPINVOKE.SWIGPendingException.Retrieve();
            return ret;
        }

Usage Example

 public void test_SpeciesType_parent_add()
 {
     SpeciesType ia = new SpeciesType(2,4);
       ia.setId("s");
       Model m = new Model(2,4);
       m.addSpeciesType(ia);
       ia = null;
       ListOf lo = m.getListOfSpeciesTypes();
       assertTrue( lo == m.getSpeciesType(0).getParentSBMLObject() );
       assertTrue( m == lo.getParentSBMLObject() );
 }
All Usage Examples Of libsbmlcs.SpeciesType::setId