次の方法で共有


GCHandle.Target プロパティ

ハンドルが表すオブジェクトを取得または設定します。

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);

プロパティ値

ハンドルが表すオブジェクト。

例外

例外の種類 条件
InvalidOperationException ハンドルが解放されたか、または初期化されていません。

必要条件

プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ, .NET Compact Framework - Windows CE .NET, Common Language Infrastructure (CLI) Standard

.NET Framework セキュリティ:

参照

GCHandle 構造体 | GCHandle メンバ | System.Runtime.InteropServices 名前空間 | GCHandleType