PostSharp6.5//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: 6.5.4.0 (6.5.4.0)
Syntax
C#
public bool IsRequired { get; set; }

Property Value

Type: Boolean
See Also