Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ ReleaseComObject()

static int System.Runtime.InteropServices.Marshal.ReleaseComObject ( object o)
inlinestatic

Definition at line 363 of file Marshal.cs.

364 {
366 {
367 throw new NotSupportedException(SR.NotSupported_COM);
368 }
369 if (o == null)
370 {
371 throw new NullReferenceException();
372 }
373 if (!(o is __ComObject _ComObject))
374 {
375 throw new ArgumentException(SR.Argument_ObjNotComObject, "o");
376 }
377 return _ComObject.ReleaseSelf();
378 }

References System.SR.Argument_ObjNotComObject, System.Runtime.InteropServices.Marshal.IsBuiltInComSupported, and System.SR.NotSupported_COM.

Referenced by System.__ComObject.ReleaseAllData(), and System.Runtime.InteropServices.ComEventsSink.Unadvise().