PostSharp SDK 6.10 / / Class Reference / Post­Sharp.​Sdk.​Aspect­Infrastructure Namespace / IAspect­Dependency­Object Interface / IAspect­Dependency­Object Methods / IAspect­Dependency­Object.​Has­Effect Method

IAspectDependencyObject.HasEffect Method

Determines whether the current object has a given effect.

Namespace:  PostSharp.Sdk.AspectInfrastructure
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 6.10.14.0 (6.10.14.0)
Syntax
C#
bool HasEffect(
	string effect
)

Parameters

effect
Type: System.String
A case-sensitive string uniquely identifying the effect. See StandardEffects.

Return Value

Type: Boolean
true if the current object has the current effect, otherwise false.
See Also