翻訳への提案を行います
 
他のユーザーによる提案:

progress indicator
他の提案はありません。
クリックして評価とフィードバックをお寄せください
MSDN
MSDN ライブラリ
.NET 開発
.NET Framework 4
System.ComponentModel 名前空間
System.ComponentModel
Component クラス
Component メソッド
Dispose メソッド
 Dispose メソッド
すべて縮小/すべて展開 すべて縮小
コンテンツの表示:   英語と日本語を並べて表示コンテンツの表示: 英語と日本語を並べて表示
.NET Framework Class Library
Component..::.Dispose Method

Releases all resources used by the Component.

Namespace:  System.ComponentModel
Assembly:  System (in System.dll)
Visual Basic
Public Sub Dispose
C#
public void Dispose()
Visual C++
public:
virtual void Dispose() sealed
F#
abstract Dispose : unit -> unit 
override Dispose : unit -> unit 

Implements

IDisposable..::.Dispose()()()

Call Dispose when you are finished using the Component. The Dispose method leaves the Component in an unusable state. After calling Dispose, you must release all references to the Component so the garbage collector can reclaim the memory that the Component was occupying. For more information, see Cleaning Up Unmanaged Resources and Implementing a Dispose Method.

NoteNote

Always call Dispose before you release your last reference to the Component. Otherwise, the resources it is using will not be freed until the garbage collector calls the Component object's Finalize method.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role not supported), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
.NET Framework クラス ライブラリ
Component..::.Dispose メソッド

Component によって使用されているすべてのリソースを解放します。

名前空間:  System.ComponentModel
アセンブリ:  System (System.dll 内)
Visual Basic
Public Sub Dispose
C#
public void Dispose()
Visual C++
public:
virtual void Dispose() sealed
F#
abstract Dispose : unit -> unit 
override Dispose : unit -> unit 

実装

IDisposable..::.Dispose()()()

Component を使い終わったら、Dispose を呼び出します。 Dispose メソッドは、Component を使用できない状態にします。 Dispose を呼び出した後で、Component へのすべての参照を解放し、Component によって占有されていたメモリをガベージ コレクターがクリアできるようにする必要があります。 詳細については、アンマネージ リソースのクリーンアップDispose メソッドの実装 の各トピックを参照してください。

メモメモ

Component への参照をすべて解放してしまう前に、必ず Dispose を呼び出してください。 このメソッドを呼び出さないと、カーソルが使用しているリソースは、ガベージ コレクションによって Component オブジェクトの Finalize メソッドが呼び出されるまで解放されません。

.NET Framework

サポート対象: 4、3.5、3.0、2.0、1.1、1.0

.NET Framework Client Profile

サポート対象: 4、3.5 SP1

Windows 7, Windows Vista SP1 以降, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core はサポート対象外), Windows Server 2008 R2 (SP1 以降で Server Core をサポート), Windows Server 2003 SP2

.NET Framework では、各プラットフォームのすべてのバージョンはサポートしていません。 サポートされているバージョンについては、「.NET Framework システム要件」を参照してください。
コミュニティ コンテンツ   コミュニティ コンテンツとは
新しいコンテンツの追加 RSS  注釈
Processing
© 2012 Microsoft. All rights reserved. 使用条件 | 商標 | プライバシー
Page view tracker