public int getIndex(string uri) { int ret = libsbmlPINVOKE.XMLNamespaces_getIndex(swigCPtr, uri); if (libsbmlPINVOKE.SWIGPendingException.Pending) throw libsbmlPINVOKE.SWIGPendingException.Retrieve(); return ret; }