NAnt SDK Documentation - v0.92

FrameworkConfigurableAttribute Class

Indicates that the value of the property to which the attribute is assigned, can be configured on the framework-level in the NAnt application configuration file.

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

System.Object
   System.Attribute
      NAnt.Core.Attributes.FrameworkConfigurableAttribute

[Visual Basic]
<AttributeUsage(Inherited:=True, ValidOn:=AttributeTargets.Property, AllowMultiple:=False)>
NotInheritable Public Class FrameworkConfigurableAttribute
    Inherits Attribute
[C#]
[AttributeUsage(Inherited=True, ValidOn=AttributeTargets.Property, AllowMultiple=False)]
public sealed class FrameworkConfigurableAttribute : 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.

Example

The following example shows a property of which the value can be configured for a specific framework in the NAnt configuration file.

[C#]
[FrameworkConfigurable("exename", Required=true)]
public virtual string ExeName {
    get { return _exeName; }
    set { _exeName = value; }
}

Requirements

Namespace: NAnt.Core.Attributes

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

See Also

FrameworkConfigurableAttribute Members | NAnt.Core.Attributes Namespace