Allows getting/ setting the Object this handle represents.
[Visual Basic] Public Property Target As Object [C#] public object Target {get; set;} [C++] public: __property Object* get_Target(); public: __property void set_Target(Object*); [JScript] public function get Target() : Object; public function set Target(Object);
Exception Type | Condition |
---|---|
InvalidOperationException | will be thrown if the handle was never initialized or if it was freed |
GCHandle Structure | GCHandle Members | System.Runtime.InteropServices Namespace