Post­Sharp Documentation / API Reference / Post­Sharp.​Aspects.​Advices Namespace / Import­Member­Advice­Instance Class / Import­Member­Advice­Instance Properties / Import­Member­Advice­Instance.​Is­Required Property

ImportMemberAdviceInstance.IsRequired Property

Determines whether a build-time error should be emitted if the member cannot be found. If false, the binding field will be null in case the imported member is absent.

Namespace:  PostSharp.Aspects.Advices
Assembly:  PostSharp (in PostSharp.dll) Version: 6.1.3.0 (6.1.3.0)
Syntax
C#
public bool IsRequired { get; }

Property Value

Type: Boolean
Remarks

This property is always true when the Member property is set.

See Also