EventDescriptor.IsMulticast Propriedade

Definição

Quando substituído em uma classe derivada, obtém um valor que indica se o delegado do evento é um delegado multicast.When overridden in a derived class, gets a value indicating whether the event delegate is a multicast delegate.

public:
 abstract property bool IsMulticast { bool get(); };
public abstract bool IsMulticast { get; }
member this.IsMulticast : bool
Public MustOverride ReadOnly Property IsMulticast As Boolean

Valor da propriedade

Boolean

true Se o representante do evento for multicast; caso contrário, false .true if the event delegate is multicast; otherwise, false.

Comentários

Normalmente, essa propriedade é implementada por meio de reflexão.Typically, this property is implemented through reflection.

Um delegado de multicast difere de um delegado regular, pois ele pode conter referências a mais do que apenas um método.A multicast delegate differs from a regular delegate in that it can contain references to more than just one method. Os métodos em um delegado de multicast são executados de forma síncrona quando o delegado é invocado, na ordem em que aparecem.Methods in a multicast delegate are executed synchronously when the delegate is invoked, in the order in which they appear. Se um dos métodos chamados gerar uma exceção, o delegado cessará e a exceção será propagada para o chamador delegado.If one of the called methods raises an exception, then the delegate ceases and the exception is propagated to the delegate caller.

Aplica-se a

Confira também