Class HelpCategoryAttribute
Assigns command or all commands in the handler to a specific category in help list.
Inheritance
Implements
Namespace: TehGM.Wolfringo.Commands
Assembly: Wolfringo.Commands.dll
Syntax
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
public class HelpCategoryAttribute : Attribute, IEquatable<HelpCategoryAttribute>
Constructors
| Improve this Doc View SourceHelpCategoryAttribute(String)
Assigns command or all commands in the handler to a specific category in help list, with priority of 0.
Declaration
public HelpCategoryAttribute(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Name of the category. |
HelpCategoryAttribute(String, Int32)
Assigns command or all commands in the handler to a specific category in help list.
Declaration
public HelpCategoryAttribute(string name, int priority)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Name of the category. |
System.Int32 | priority | Priority of the category. |
Properties
| Improve this Doc View SourceName
Name of the category.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
System.String |
Priority
Priority of the category.
Declaration
public int Priority { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
| Improve this Doc View SourceEquals(Object)
Check if the categories should be treated as the same.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | The category attribute to compare with. |
Returns
Type | Description |
---|---|
System.Boolean | True if |
Overrides
Remarks
Categories are treated the same if the name matches, case insensitively.
Equals(HelpCategoryAttribute)
Check if the categories should be treated as the same.
Declaration
public bool Equals(HelpCategoryAttribute other)
Parameters
Type | Name | Description |
---|---|---|
HelpCategoryAttribute | other | The category attribute to compare with. |
Returns
Type | Description |
---|---|
System.Boolean | True if the categories are considered to be the same; otherwise false. |
Remarks
Categories are treated the same if the name matches, case insensitively.
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |