GCHandle を解放します。
Public Sub Free()
[C#]
public void Free();
[C++]
public: void Free();
[JScript]
public function Free();
例外
例外の種類 | 条件 |
---|---|
InvalidOperationException | ハンドルが解放されたか、または初期化されていません。 |
解説
特定のハンドルに対して Free を呼び出すのは、確実に 1 回だけにする必要があります。
必要条件
プラットフォーム: 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 セキュリティ:
- SecurityPermission (アンマネージ コードを操作するために必要なアクセス許可) SecurityPermissionFlag.UnmanagedCode (関連する列挙体)
参照
GCHandle 構造体 | GCHandle メンバ | System.Runtime.InteropServices 名前空間