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

◆ GetComObjectData()

static ? object System.Runtime.InteropServices.Marshal.GetComObjectData ( object obj,
object key )
inlinestatic

Definition at line 406 of file Marshal.cs.

407 {
409 {
410 throw new NotSupportedException(SR.NotSupported_COM);
411 }
412 if (obj == null)
413 {
414 throw new ArgumentNullException("obj");
415 }
416 if (key == null)
417 {
418 throw new ArgumentNullException("key");
419 }
420 if (!(obj is __ComObject _ComObject))
421 {
422 throw new ArgumentException(SR.Argument_ObjNotComObject, "obj");
423 }
424 return _ComObject.GetData(key);
425 }

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.Find(), and System.Runtime.InteropServices.CustomMarshalers.ComDataHelpers.GetOrCreateManagedViewFromComData< T, TView >().