PostSharp SDK 6.10 / / Class Reference / Post­Sharp.​Sdk.​Extensibility.​Tasks Namespace / Multicast­Attributes­Comparer Class / Multicast­Attributes­Comparer Methods / Multicast­Attributes­Comparer.​Compare­Event­Attributes Method

MulticastAttributesComparer.CompareEventAttributes Method

Determines if a given event matches a given value of MulticastAttributes.

Namespace:  PostSharp.Sdk.Extensibility.Tasks
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 6.10.14.0 (6.10.14.0)
Syntax
C#
public MulticastMatch CompareEventAttributes(
	MulticastAttributes acceptableAttributes,
	EventDeclaration candidateEvent
)

Parameters

acceptableAttributes
Type: MulticastAttributes
A value of MulticastAttributes specifying acceptable events.
candidateEvent
Type: PostSharp.Sdk.CodeModel.EventDeclaration
The candidate event.

Return Value

Type: MulticastMatch
true if candidateEvent is acceptable with respect to acceptableAttributes, otherwise false.
See Also