public void CloseMethod() { int hr; COMException Exception; hr = SymWriter_CloseMethod(m_Writer); if (hr < 0) { Exception = new COMException("Call to CloseMethod failed.", hr); throw Exception; } }