public int DeleteLayer(int index) { int ret = OgrPINVOKE.DataSource_DeleteLayer(swigCPtr, index); if (OgrPINVOKE.SWIGPendingException.Pending) { throw OgrPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }