3 references to TargetInterfaceIID
System.Runtime.InteropServices (3)
System\Runtime\InteropServices\Marshalling\ComInterfaceMarshaller.cs (3)
74
if (
TargetInterfaceIID
is null)
79
if (Marshal.QueryInterface(unknown, in Nullable.GetValueRefOrDefaultRef(in
TargetInterfaceIID
), out nint interfacePointer) != 0)
82
throw new InvalidCastException($"Unable to cast the provided managed object to a COM interface with ID '{
TargetInterfaceIID
.GetValueOrDefault():B}'");