Releases the COM component and, if the reference hits 0, zombies this object. Further usage of this object might throw an exception.
[Visual Basic] Public Shared Function ReleaseComObject( _ ByVal o As Object _ ) As Integer [C#] public static int ReleaseComObject( object o ); [C++] public: static int ReleaseComObject( Object* o ); [JScript] public static function ReleaseComObject( o : Object ) : int;
Marshal Class | Marshal Members | System.Runtime.InteropServices Namespace