PostSharp 4.3 / / 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: (
public bool IsRequired { get; }

Property Value

Type: Boolean

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

See Also