Skip to content

Commit cf989b2

Browse files
JeremyKuhnemairaw
authored andcommitted
Add exception to GetObjectForIUnknown (#2931)
* Add exception to GetObjectForIUnknown This method will throw if given a "null" `IntPtr`. * Correct capitalization * fix link
1 parent 9581c38 commit cf989b2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

xml/System.Runtime.InteropServices/Marshal.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4479,6 +4479,7 @@ There is a difference in the behavior of the `GetLastWin32Error` method on .NET
44794479

44804480
]]></format>
44814481
</remarks>
4482+
<exception cref="T:SystemArgumentNullException"><paramref name="pUnk" /> is <see cref="F:System.IntPtr.Zero" />.</exception>
44824483
<permission cref="T:System.Security.SecurityCriticalAttribute">requires full trust for the immediate caller. This member cannot be used by partially trusted or transparent code.</permission>
44834484
<altmember cref="M:System.Runtime.InteropServices.Marshal.AddRef(System.IntPtr)" />
44844485
<altmember cref="M:System.Runtime.InteropServices.Marshal.Release(System.IntPtr)" />
@@ -12094,4 +12095,4 @@ public static void ThrowExceptionForHR(interrorCode,IntPtrerrorInfo)
1209412095
</Docs>
1209512096
</Member>
1209612097
</Members>
12097-
</Type>
12098+
</Type>

0 commit comments

Comments
 (0)