MulticastDelegate Class
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Represents a multicast delegate; that is, a delegate that can have more than one element in its invocation list.
Inheritance Hierarchy
System. . :: . .Object
System. . :: . .Delegate
System..::..MulticastDelegate
Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Syntax
'Declaration
<SerializableAttribute> _
Public MustInherit Class MulticastDelegate _
Inherits Delegate
[SerializableAttribute]
public abstract class MulticastDelegate : Delegate
[SerializableAttribute]
public ref class MulticastDelegate abstract : public Delegate
[<AbstractClass>]
[<SerializableAttribute>]
type MulticastDelegate =
class
inherit Delegate
end
public abstract class MulticastDelegate extends Delegate
The MulticastDelegate type exposes the following members.
Constructors
Name | Description | |
---|---|---|
MulticastDelegate | Initializes a new instance of the MulticastDelegate class. |
Top
Properties
Name | Description | |
---|---|---|
Method | Gets the method represented by the delegate. (Inherited from Delegate.) | |
Target | Gets the class instance on which the current delegate invokes the instance method. (Inherited from Delegate.) |
Top
Methods
Name | Description | |
---|---|---|
Equals | Determines whether the specified object and the current delegate are of the same type and share the same targets, methods, and invocation list. (Inherited from Delegate.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
Operators
Name | Description | |
---|---|---|
Equality | Determines whether two MulticastDelegate objects are equal. | |
Inequality | Determines whether two MulticastDelegate objects are not equal. |
Top
Remarks
MulticastDelegate is a special class. Compilers and other tools can derive from this class, but you cannot derive from it explicitly. The same is true of the Delegate class.
A MulticastDelegate has a linked list of delegates, called an invocation list, consisting of one or more elements. When a multicast delegate is invoked, the delegates in the invocation list are called synchronously in the order in which they appear. If an error occurs during execution of the list then an exception is thrown.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.