MulticastDelegate 생성자

정의

MulticastDelegate 클래스의 새 인스턴스를 초기화합니다.

오버로드

Name Description
MulticastDelegate(Object, String)

MulticastDelegate 클래스의 새 인스턴스를 초기화합니다.

MulticastDelegate(Type, String)

MulticastDelegate 클래스의 새 인스턴스를 초기화합니다.

MulticastDelegate(Object, String)

Source:
MulticastDelegate.cs
Source:
MulticastDelegate.cs
Source:
MulticastDelegate.cs
Source:
MulticastDelegate.cs
Source:
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)

Source:
MulticastDelegate.cs
Source:
MulticastDelegate.cs
Source:
MulticastDelegate.cs
Source:
MulticastDelegate.cs
Source:
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) 메서드 오버로드는 지정된 이름을 가진 메서드에 대한 정적 대리자를 만듭니다.

적용 대상