[This is preliminary documentation and is subject to change.]
Author: Đonny
Indicates if enum may allow values that are not member of it or not
Namespace: Tools.ComponentModelTAssembly: Tools (in Tools.dll) Version: 1.5.3.38916 (1.5.3.38916)
Syntax
| C# |
|---|
[AttributeUsageAttribute(AttributeTargets.Enum)] public class RestrictAttribute : Attribute |
| Visual Basic |
|---|
<AttributeUsageAttribute(AttributeTargets.Enum)> _ Public Class RestrictAttribute _ Inherits Attribute |
| Visual C++ |
|---|
[AttributeUsageAttribute(AttributeTargets::Enum)] public ref class RestrictAttribute : public Attribute |
| F# |
|---|
[<AttributeUsageAttribute(AttributeTargets.Enum)>] type RestrictAttribute = class inherit Attribute end |
| JScript |
|---|
public class RestrictAttribute extends Attribute |
Remarks
Tools that use this attribute should treat enums with no RestrictAttribute as restricted (Restrict is True)
Inheritance Hierarchy
See Also
Version History
1.5.2
- (Nightly) VersionAttribute and AuthorAttribute removed