Retrieve the address of an object in a Pinned handle.
[Visual Basic] Public Function AddrOfPinnedObject() As Integer [C#] public int AddrOfPinnedObject(); [C++] public: int AddrOfPinnedObject(); [JScript] public function AddrOfPinnedObject() : int;
Returns the address of the of the pinned object as an integer.
Exception Type | Condition |
---|---|
InvalidOperationException | will be thrown if the handle is any type other than Pinned. |
GCHandle Structure | GCHandle Members | System.Runtime.InteropServices Namespace