MulticastDelegate Class

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

System::Object
  System::Delegate
    System::MulticastDelegate

Namespace:  System
Assembly:  mscorlib (in mscorlib.dll)

No code example is currently available or this language may not be supported.

The MulticastDelegate type exposes the following members.

  NameDescription
Protected methodMulticastDelegateInitializes a new instance of the MulticastDelegate class.
Top

  NameDescription
Public propertySupported by Silverlight for Windows PhoneSupported by Xbox 360MethodGets the method represented by the delegate. (Inherited from Delegate.)
Public propertySupported by Silverlight for Windows PhoneSupported by Xbox 360TargetGets the class instance on which the current delegate invokes the instance method. (Inherited from Delegate.)
Top

  NameDescription
Protected methodSupported by Silverlight for Windows PhoneSupported by Xbox 360CombineImplCombines this Delegate with the specified Delegate to form a new delegate. (Overrides Delegate::CombineImpl(Delegate).)
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360DynamicInvokeDynamically invokes (late-bound) the method represented by the current delegate. (Inherited from Delegate.)
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360EqualsDetermines whether this multicast delegate and the specified object are equal. (Overrides Delegate::Equals(Object).)
Protected methodSupported by Silverlight for Windows PhoneSupported by Xbox 360FinalizeAllows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)

In Silverlight for Windows Phone, this member is overridden by Finalize().


In XNA Framework, this member is overridden by Finalize().
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360GetHashCodeReturns the hash code for this instance. (Overrides Delegate::GetHashCode().)
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360GetInvocationListReturns the invocation list of this multicast delegate, in invocation order. (Overrides Delegate::GetInvocationList().)
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360GetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodSupported by Silverlight for Windows PhoneSupported by Xbox 360MemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Protected methodSupported by Silverlight for Windows PhoneSupported by Xbox 360RemoveImplRemoves an element from the invocation list of this MulticastDelegate that is equal to the specified delegate. (Overrides Delegate::RemoveImpl(Delegate).)
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360ToStringReturns a string that represents the current object. (Inherited from Object.)
Top

  NameDescription
Public operatorStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360EqualityDetermines whether two MulticastDelegate objects are equal.
Public operatorStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360InequalityDetermines whether two MulticastDelegate objects are not equal.
Top

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.

In Silverlight, using delegates to make asynchronous method calls is not supported. Calling BeginInvoke causes a NotSupportedException.

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.

The following example demonstrates the use of the MulticastDelegate class.

No code example is currently available or this language may not be supported.

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Xbox 360, Windows Phone OS 7.0

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Community Additions

ADD
Show: