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

◆ SetComObjectData()

static bool System.Runtime.InteropServices.Marshal.SetComObjectData ( object obj,
object key,
object? data )
inlinestatic

Definition at line 428 of file Marshal.cs.

429 {
431 {
432 throw new NotSupportedException(SR.NotSupported_COM);
433 }
434 if (obj == null)
435 {
436 throw new ArgumentNullException("obj");
437 }
438 if (key == null)
439 {
440 throw new ArgumentNullException("key");
441 }
442 if (!(obj is __ComObject _ComObject))
443 {
444 throw new ArgumentException(SR.Argument_ObjNotComObject, "obj");
445 }
446 return _ComObject.SetData(key, data);
447 }

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

Referenced by System.Runtime.InteropServices.Marshal.CreateWrapperOfType(), System.Runtime.InteropServices.ComEventsInfo.FromObject(), System.Runtime.InteropServices.CustomMarshalers.ComDataHelpers.GetOrCreateManagedViewFromComData< T, TView >(), and System.Runtime.InteropServices.ComEventsHelper.Remove().