MulticastDelegate コンストラクター

定義

MulticastDelegate クラスの新しいインスタンスを初期化します。

オーバーロード

名前 説明
MulticastDelegate(Object, String)

MulticastDelegate クラスの新しいインスタンスを初期化します。

MulticastDelegate(Type, String)

MulticastDelegate クラスの新しいインスタンスを初期化します。

MulticastDelegate(Object, String)

ソース:
MulticastDelegate.cs
ソース:
MulticastDelegate.cs
ソース:
MulticastDelegate.cs
ソース:
MulticastDelegate.cs
ソース:
MulticastDelegate.cs

MulticastDelegate クラスの新しいインスタンスを初期化します。

protected:
 MulticastDelegate(System::Object ^ target, System::String ^ method);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The target method might be removed")]
protected MulticastDelegate(object target, string method);
protected MulticastDelegate(object target, string method);
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The target method might be removed")>]
new MulticastDelegate : obj * string -> MulticastDelegate
new MulticastDelegate : obj * string -> MulticastDelegate
Protected Sub New (target As Object, method As String)

パラメーター

target
Object

methodが定義されているオブジェクト。

method
String

デリゲートが作成されるメソッドの名前。

属性

例外

抽象クラスのインスタンスを作成できないか、遅延バインディング メカニズムを使用してこのメンバーが呼び出されました。

注釈

このコンストラクターは、アプリケーション コードでは使用できません。 インスタンス メソッドの名前を指定してデリゲートを作成するには、メソッド名とターゲット オブジェクトを指定する Delegate.CreateDelegate メソッドのオーバーロードを使用します。 たとえば、 Delegate.CreateDelegate(Type, Object, String) メソッドのオーバーロードは、指定した名前を持つインスタンス メソッドのデリゲートを作成します。

適用対象

MulticastDelegate(Type, String)

ソース:
MulticastDelegate.cs
ソース:
MulticastDelegate.cs
ソース:
MulticastDelegate.cs
ソース:
MulticastDelegate.cs
ソース:
MulticastDelegate.cs

MulticastDelegate クラスの新しいインスタンスを初期化します。

protected:
 MulticastDelegate(Type ^ target, System::String ^ method);
protected MulticastDelegate(Type target, string method);
new MulticastDelegate : Type * string -> MulticastDelegate
Protected Sub New (target As Type, method As String)

パラメーター

target
Type

methodが定義されているオブジェクトの型。

method
String

デリゲートが作成される静的メソッドの名前。

例外

抽象クラスのインスタンスを作成できないか、遅延バインディング メカニズムを使用してこのメンバーが呼び出されました。

注釈

このコンストラクターは、アプリケーション コードでは使用できません。 静的メソッドの名前を指定してデリゲートを作成するには、メソッド名を指定するがターゲット オブジェクトを指定しない Delegate.CreateDelegate メソッドのオーバーロードを使用します。 たとえば、 Delegate.CreateDelegate(Type, Type, String) メソッドのオーバーロードは、指定した名前のメソッドの静的デリゲートを作成します。

適用対象