Share via


ToolboxService.GetToolboxItems メソッド

定義

ICollection オブジェクトの ToolboxItem を返します。

オーバーロード

GetToolboxItems(Assembly, String, Boolean)

指定されたアセンブリについて、ICollection オブジェクトの ToolboxItem を返します。

GetToolboxItems(AssemblyName, Boolean)

指定されたアセンブリについて、ICollection オブジェクトの ToolboxItem を返します。

GetToolboxItems(AssemblyName)

指定されたアセンブリについて、ICollection オブジェクトの ToolboxItem を返します。

GetToolboxItems(Assembly, String)

指定されたアセンブリに含まれるすべてのツールボックス項目が格納された ICollection を返します。

GetToolboxItems(Assembly, String, Boolean)

指定されたアセンブリについて、ICollection オブジェクトの ToolboxItem を返します。

public:
 static System::Collections::ICollection ^ GetToolboxItems(System::Reflection::Assembly ^ a, System::String ^ newCodeBase, bool throwOnError);
public static System.Collections.ICollection GetToolboxItems (System.Reflection.Assembly a, string newCodeBase, bool throwOnError);
static member GetToolboxItems : System.Reflection.Assembly * string * bool -> System.Collections.ICollection
Public Shared Function GetToolboxItems (a As Assembly, newCodeBase As String, throwOnError As Boolean) As ICollection

パラメーター

a
Assembly

列挙対象のアセンブリ。

newCodeBase
String

アセンブリの URL の場所を表す文字列。

throwOnError
Boolean

エラーをスローする場合は true。それ以外の場合は、false

戻り値

指定されたアセンブリ名で表されるアセンブリ内のすべてのツールボックス項目を格納するコレクション。

例外

anullです。

注釈

メソッドは GetToolboxItems 、ツールボックス項目をサポートするすべての型についてアセンブリをスキャンし、それらの型の項目を返します。 ツールボックス項目をサポートするには、型に次の特性が必要です。

  • パブリックにする。

  • IComponentを実装します。

  • 抽象ではありません。

  • 型に ToolboxItemAttributefalse に設定されていません。

  • ジェネリック パラメーターが含まれていません。

アセンブリはプロセスの間ロックされるため、 を介して GetToolboxItems さまざまなファイルを列挙すると、多くのアセンブリが読み込まれる可能性があります。 アセンブリ名を受け取るメソッドは GetToolboxItems 、アセンブリを検索するために別 AppDomain の を作成します。 アセンブリのセットのオブジェクトの列挙が完了したら、 メソッドを ToolboxItem 呼び出 UnloadToolboxItems すことができます。これにより、 がアンロード AppDomain され、読み込まれたアセンブリのファイル参照が解放されます。

適用対象

GetToolboxItems(AssemblyName, Boolean)

指定されたアセンブリについて、ICollection オブジェクトの ToolboxItem を返します。

public:
 static System::Collections::ICollection ^ GetToolboxItems(System::Reflection::AssemblyName ^ an, bool throwOnError);
public static System.Collections.ICollection GetToolboxItems (System.Reflection.AssemblyName an, bool throwOnError);
static member GetToolboxItems : System.Reflection.AssemblyName * bool -> System.Collections.ICollection
Public Shared Function GetToolboxItems (an As AssemblyName, throwOnError As Boolean) As ICollection

パラメーター

an
AssemblyName

読み込むアセンブリの名前。

throwOnError
Boolean

エラーをスローする場合は true。それ以外の場合は、false

戻り値

指定されたアセンブリ名で表されるアセンブリ内のすべてのツールボックス項目を格納するコレクション。

例外

annullです。

注釈

メソッドは GetToolboxItems 、ツールボックス項目をサポートするすべての型についてアセンブリをスキャンし、それらの型の項目を返します。 ツールボックス項目をサポートするには、型に次の特性が必要です。

  • パブリックにする。

  • IComponentを実装します。

  • 抽象ではありません。

  • 型に ToolboxItemAttributefalse に設定されていません。

  • ジェネリック パラメーターが含まれていません。

アセンブリはプロセスの間ロックされるため、 を介して GetToolboxItems さまざまなファイルを列挙すると、多くのアセンブリが読み込まれる可能性があります。 アセンブリ名を受け取るメソッドは GetToolboxItems 、アセンブリを検索するために別 AppDomain の を作成します。 アセンブリのセットのオブジェクトの列挙が完了したら、 メソッドを ToolboxItem 呼び出 UnloadToolboxItems すことができます。これにより、 がアンロード AppDomain され、読み込まれたアセンブリのファイル参照が解放されます。

適用対象

GetToolboxItems(AssemblyName)

指定されたアセンブリについて、ICollection オブジェクトの ToolboxItem を返します。

public:
 static System::Collections::ICollection ^ GetToolboxItems(System::Reflection::AssemblyName ^ an);
public static System.Collections.ICollection GetToolboxItems (System.Reflection.AssemblyName an);
static member GetToolboxItems : System.Reflection.AssemblyName -> System.Collections.ICollection
Public Shared Function GetToolboxItems (an As AssemblyName) As ICollection

パラメーター

an
AssemblyName

読み込むアセンブリの名前。

戻り値

指定されたアセンブリ名で表されるアセンブリ内のすべてのツールボックス項目を格納するコレクション。

例外

annullです。

注釈

メソッドは GetToolboxItems 、ツールボックス項目をサポートするすべての型についてアセンブリをスキャンし、それらの型の項目を返します。 ツールボックス項目をサポートするには、型に次の特性が必要です。

  • パブリックにする。

  • IComponentを実装します。

  • 抽象ではありません。

  • 型に ToolboxItemAttributefalse に設定されていません。

  • ジェネリック パラメーターが含まれていません。

アセンブリはプロセスの間ロックされるため、 を介して GetToolboxItems さまざまなファイルを列挙すると、多くのアセンブリが読み込まれる可能性があります。 アセンブリ名を受け取るメソッドは GetToolboxItems 、アセンブリを検索するために別 AppDomain の を作成します。 アセンブリのセットのオブジェクトの列挙が完了したら、 メソッドを ToolboxItem 呼び出 UnloadToolboxItems すことができます。これにより、 がアンロード AppDomain され、読み込まれたアセンブリのファイル参照が解放されます。

この方法で読み込まれたアセンブリは、後でアンロードできるように、別 AppDomain の に読み込まれます。 これは、アセンブリ ファイルを一時的にロックするだけです。

こちらもご覧ください

適用対象

GetToolboxItems(Assembly, String)

指定されたアセンブリに含まれるすべてのツールボックス項目が格納された ICollection を返します。

public:
 static System::Collections::ICollection ^ GetToolboxItems(System::Reflection::Assembly ^ a, System::String ^ newCodeBase);
public static System.Collections.ICollection GetToolboxItems (System.Reflection.Assembly a, string newCodeBase);
static member GetToolboxItems : System.Reflection.Assembly * string -> System.Collections.ICollection
Public Shared Function GetToolboxItems (a As Assembly, newCodeBase As String) As ICollection

パラメーター

a
Assembly

列挙対象のアセンブリ。

newCodeBase
String

アセンブリの URL の場所を表す文字列。

戻り値

指定されたアセンブリ内のすべてのツールボックス項目を格納するコレクション。

例外

anullです。

注釈

メソッドは GetToolboxItems 、ツールボックス項目をサポートするすべての型についてアセンブリをスキャンし、それらの型の項目を返します。 ツールボックス項目をサポートするには、型に次の特性が必要です。

  • パブリックにする。

  • IComponentを実装します。

  • 抽象ではありません。

  • 型に ToolboxItemAttributefalse に設定されていません。

  • ジェネリック パラメーターが含まれていません。

アセンブリはプロセスの間ロックされるため、 を介して GetToolboxItems さまざまなファイルを列挙すると、多くのアセンブリが読み込まれる可能性があります。 アセンブリ名を受け取るメソッドは GetToolboxItems 、アセンブリを検索するために別 AppDomain の を作成します。 アセンブリのセットのオブジェクトの列挙が完了したら、 メソッドを ToolboxItem 呼び出 UnloadToolboxItems すことができます。これにより、 がアンロード AppDomain され、読み込まれたアセンブリのファイル参照が解放されます。

こちらもご覧ください

適用対象