Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

RequiredAttribute Class

Marks a property as being 'required': that is, the setter property must be configured to be dependency-injected with a value.

For a list of all members of this type, see RequiredAttribute Members .

System.Object
   Attribute
      RequiredAttribute

[Visual Basic]
<AttributeUsage(ValidOn:=AttributeTargets.Property, AllowMultiple:=False, Inherited:=True)> _
Public Class RequiredAttribute
    Inherits Attribute
[C#]
[AttributeUsage(ValidOn=AttributeTargets.Property, AllowMultiple=False, Inherited=True)]
public class RequiredAttribute : Attribute

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Remarks

Consult the SDK documentation for RequiredAttributeObjectPostProcessor, which, by default, checks for the presence of this annotation.

Requirements

Namespace: Spring.Objects.Factory.Attributes

Assembly: Spring.Core (in Spring.Core.dll)

See Also

RequiredAttribute Members | Spring.Objects.Factory.Attributes Namespace