mscorlib(4.0.0.0) API with additions
System.MulticastDelegate Class Reference

Represents a multicast delegate; that is, a delegate that can have more than one element in its invocation list. More...

Inheritance diagram for System.MulticastDelegate:
[legend]
Collaboration diagram for System.MulticastDelegate:
[legend]

Public Member Functions

override void GetObjectData (SerializationInfo info, StreamingContext context)
 Populates a T:System.Runtime.Serialization.SerializationInfo object with all the data needed to serialize this instance. More...
 
sealed override bool Equals (object obj)
 Determines whether this multicast delegate and the specified object are equal. More...
 
sealed override Delegate [] GetInvocationList ()
 Returns the invocation list of this multicast delegate, in invocation order. More...
 
sealed override int GetHashCode ()
 Returns the hash code for this instance. More...
 
- Public Member Functions inherited from System.Delegate
object DynamicInvoke (params object[] args)
 Dynamically invokes (late-bound) the method represented by the current delegate. More...
 
override bool Equals (object obj)
 Determines whether the specified object and the current delegate are of the same type and share the same targets, methods, and invocation list. More...
 
override int GetHashCode ()
 Returns a hash code for the delegate. More...
 
virtual object Clone ()
 Creates a shallow copy of the delegate. More...
 

Static Public Member Functions

static bool operator== (MulticastDelegate d1, MulticastDelegate d2)
 Determines whether two T:System.MulticastDelegate objects are equal. More...
 
static bool operator != (MulticastDelegate d1, MulticastDelegate d2)
 Determines whether two T:System.MulticastDelegate objects are not equal. More...
 
- Static Public Member Functions inherited from System.Delegate
static Delegate Combine (Delegate a, Delegate b)
 Concatenates the invocation lists of two delegates. More...
 
static Delegate Combine (params Delegate[] delegates)
 Concatenates the invocation lists of an array of delegates. More...
 
static Delegate Remove (Delegate source, Delegate value)
 Removes the last occurrence of the invocation list of a delegate from the invocation list of another delegate. More...
 
static Delegate RemoveAll (Delegate source, Delegate value)
 Removes all occurrences of the invocation list of a delegate from the invocation list of another delegate. More...
 
static Delegate CreateDelegate (Type type, object target, string method)
 Creates a delegate of the specified type that represents the specified instance method to invoke on the specified class instance. More...
 
static Delegate CreateDelegate (Type type, object target, string method, bool ignoreCase)
 Creates a delegate of the specified type that represents the specified instance method to invoke on the specified class instance with the specified case-sensitivity. More...
 
static Delegate CreateDelegate (Type type, object target, string method, bool ignoreCase, bool throwOnBindFailure)
 Creates a delegate of the specified type that represents the specified instance method to invoke on the specified class instance, with the specified case-sensitivity and the specified behavior on failure to bind. More...
 
static Delegate CreateDelegate (Type type, Type target, string method)
 Creates a delegate of the specified type that represents the specified static method of the specified class. More...
 
static Delegate CreateDelegate (Type type, Type target, string method, bool ignoreCase)
 Creates a delegate of the specified type that represents the specified static method of the specified class, with the specified case-sensitivity. More...
 
static Delegate CreateDelegate (Type type, Type target, string method, bool ignoreCase, bool throwOnBindFailure)
 Creates a delegate of the specified type that represents the specified static method of the specified class, with the specified case-sensitivity and the specified behavior on failure to bind. More...
 
static Delegate CreateDelegate (Type type, MethodInfo method, bool throwOnBindFailure)
 Creates a delegate of the specified type to represent the specified static method, with the specified behavior on failure to bind. More...
 
static Delegate CreateDelegate (Type type, object firstArgument, MethodInfo method)
 Creates a delegate of the specified type that represents the specified static or instance method, with the specified first argument. More...
 
static Delegate CreateDelegate (Type type, object firstArgument, MethodInfo method, bool throwOnBindFailure)
 Creates a delegate of the specified type that represents the specified static or instance method, with the specified first argument and the specified behavior on failure to bind. More...
 
static bool operator== (Delegate d1, Delegate d2)
 Determines whether the specified delegates are equal. More...
 
static bool operator != (Delegate d1, Delegate d2)
 Determines whether the specified delegates are not equal. More...
 
static Delegate CreateDelegate (Type type, MethodInfo method)
 Creates a delegate of the specified type to represent the specified static method. More...
 

Protected Member Functions

 MulticastDelegate (object target, string method)
 Initializes a new instance of the T:System.MulticastDelegate class. More...
 
 MulticastDelegate (Type target, string method)
 Initializes a new instance of the T:System.MulticastDelegate class. More...
 
sealed override Delegate CombineImpl (Delegate follow)
 Combines this T:System.Delegate with the specified T:System.Delegate to form a new delegate. More...
 
sealed override Delegate RemoveImpl (Delegate value)
 Removes an element from the invocation list of this T:System.MulticastDelegate that is equal to the specified delegate. More...
 
override MethodInfo GetMethodImpl ()
 Returns a static method represented by the current T:System.MulticastDelegate. More...
 
- Protected Member Functions inherited from System.Delegate
 Delegate (object target, string method)
 Initializes a delegate that invokes the specified instance method on the specified class instance. More...
 
 Delegate (Type target, string method)
 Initializes a delegate that invokes the specified static method from the specified class. More...
 
virtual object DynamicInvokeImpl (object[] args)
 Dynamically invokes (late-bound) the method represented by the current delegate. More...
 

Additional Inherited Members

- Properties inherited from System.Delegate
MethodInfo Method [get]
 Gets the method represented by the delegate. More...
 
object Target [get]
 Gets the class instance on which the current delegate invokes the instance method. More...
 

Detailed Description

Represents a multicast delegate; that is, a delegate that can have more than one element in its invocation list.

Definition at line 15 of file MulticastDelegate.cs.

Constructor & Destructor Documentation

◆ MulticastDelegate() [1/2]

System.MulticastDelegate.MulticastDelegate ( object  target,
string  method 
)
protected

Initializes a new instance of the T:System.MulticastDelegate class.

Parameters
targetThe object on which method is defined.
methodThe name of the method for which a delegate is created.
Exceptions
T:System.MemberAccessExceptionCannot create an instance of an abstract class, or this member was invoked with a late-binding mechanism.

Definition at line 27 of file MulticastDelegate.cs.

◆ MulticastDelegate() [2/2]

System.MulticastDelegate.MulticastDelegate ( Type  target,
string  method 
)
protected

Initializes a new instance of the T:System.MulticastDelegate class.

Parameters
targetThe type of object on which method is defined.
methodThe name of the static method for which a delegate is created.
Exceptions
T:System.MemberAccessExceptionCannot create an instance of an abstract class, or this member was invoked with a late-binding mechanism.

Definition at line 36 of file MulticastDelegate.cs.

Member Function Documentation

◆ CombineImpl()

sealed override Delegate System.MulticastDelegate.CombineImpl ( Delegate  follow)
protectedvirtual

Combines this T:System.Delegate with the specified T:System.Delegate to form a new delegate.

Parameters
followThe delegate to combine with this delegate.
Returns
A delegate that is the new root of the T:System.MulticastDelegate invocation list.
Exceptions
T:System.ArgumentExceptionfollow does not have the same type as this instance.
T:System.MemberAccessExceptionCannot create an instance of an abstract class, or this member was invoked with a late-binding mechanism.

Reimplemented from System.Delegate.

Definition at line 251 of file MulticastDelegate.cs.

◆ Equals()

sealed override bool System.MulticastDelegate.Equals ( object  obj)

Determines whether this multicast delegate and the specified object are equal.

Parameters
objThe object to compare with this instance.
Returns
true if obj and this instance have the same invocation lists; otherwise, false.
Exceptions
T:System.MemberAccessExceptionCannot create an instance of an abstract class, or this member was invoked with a late-binding mechanism.

Definition at line 114 of file MulticastDelegate.cs.

◆ GetHashCode()

sealed override int System.MulticastDelegate.GetHashCode ( )

Returns the hash code for this instance.

Returns
A 32-bit signed integer hash code.
Exceptions
T:System.MemberAccessExceptionCannot create an instance of an abstract class, or this member was invoked with a late-binding mechanism.

Definition at line 502 of file MulticastDelegate.cs.

◆ GetInvocationList()

sealed override Delegate [] System.MulticastDelegate.GetInvocationList ( )
virtual

Returns the invocation list of this multicast delegate, in invocation order.

Returns
An array of delegates whose invocation lists collectively match the invocation list of this instance.
Exceptions
T:System.MemberAccessExceptionCannot create an instance of an abstract class, or this member was invoked with a late-binding mechanism.

Reimplemented from System.Delegate.

Definition at line 446 of file MulticastDelegate.cs.

◆ GetMethodImpl()

override MethodInfo System.MulticastDelegate.GetMethodImpl ( )
protectedvirtual

Returns a static method represented by the current T:System.MulticastDelegate.

Returns
A static method represented by the current T:System.MulticastDelegate.

Reimplemented from System.Delegate.

Definition at line 548 of file MulticastDelegate.cs.

◆ GetObjectData()

override void System.MulticastDelegate.GetObjectData ( SerializationInfo  info,
StreamingContext  context 
)
virtual

Populates a T:System.Runtime.Serialization.SerializationInfo object with all the data needed to serialize this instance.

Parameters
infoAn object that holds all the data needed to serialize or deserialize this instance.
context(Reserved) The location where serialized data is stored and retrieved.
Exceptions
T:System.ArgumentNullExceptioninfo is null.
T:System.MemberAccessExceptionCannot create an instance of an abstract class, or this member was invoked with a late-binding mechanism.
T:System.Runtime.Serialization.SerializationExceptionA serialization error occurred.

Reimplemented from System.Delegate.

Definition at line 65 of file MulticastDelegate.cs.

◆ operator !=()

static bool System.MulticastDelegate.operator != ( MulticastDelegate  d1,
MulticastDelegate  d2 
)
static

Determines whether two T:System.MulticastDelegate objects are not equal.

Parameters
d1The left operand.
d2The right operand.
Returns
true if d1 and d2 do not have the same invocation lists; otherwise, false.
Exceptions
T:System.MemberAccessExceptionCannot create an instance of an abstract class, or this member was invoked with a late-binding mechanism.

Definition at line 488 of file MulticastDelegate.cs.

◆ operator==()

static bool System.MulticastDelegate.operator== ( MulticastDelegate  d1,
MulticastDelegate  d2 
)
static

Determines whether two T:System.MulticastDelegate objects are equal.

Parameters
d1The left operand.
d2The right operand.
Returns
true if d1 and d2 have the same invocation lists; otherwise, false.
Exceptions
T:System.MemberAccessExceptionCannot create an instance of an abstract class, or this member was invoked with a late-binding mechanism.

Definition at line 476 of file MulticastDelegate.cs.

◆ RemoveImpl()

sealed override Delegate System.MulticastDelegate.RemoveImpl ( Delegate  value)
protectedvirtual

Removes an element from the invocation list of this T:System.MulticastDelegate that is equal to the specified delegate.

Parameters
valueThe delegate to search for in the invocation list.
Returns
If value is found in the invocation list for this instance, then a new T:System.Delegate without value in its invocation list; otherwise, this instance with its original invocation list.
Exceptions
T:System.MemberAccessExceptionCannot create an instance of an abstract class, or this member was invoked with a late-binding mechanism.

Reimplemented from System.Delegate.

Definition at line 378 of file MulticastDelegate.cs.


The documentation for this class was generated from the following file: