PostSharp 6.10 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Aspects.​Advices Namespace / Import­Member­Attribute Class / Import­Member­Attribute Properties / Import­Member­Attribute.​Is­Required Property

ImportMemberAttribute.IsRequired Property

Determines whether a build time error must be issued if the member to be imported is absent. 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; set; }

Property Value

Type: Boolean
See Also