Specifies that a class is a keyword group. Methods within this class that are marked as keywords are keywords. The qualified name of these methods consists of the name of the keyword group and the name of the keyword. If the keyword group has no name, the simple name of the declaring class is used instead.
[AttributeUsageAttribute(AttributeTargets.Class)] public class KeywordGroupAttribute : Attribute
'Declaration <AttributeUsageAttribute(AttributeTargets.Class> Public Class KeywordGroupAttribute Inherits Attribute
Name | Description |
---|---|
Name Property (KeywordGroupAttribute) | Gets the name of the keyword group. The default value is an empty string. |
Use the following code sample to create the keyword group LoginPage:
[KeywordGroup] public class LoginPage { // keyword methods }
<KeywordGroup()> Public Class LoginPage ' keyword methods End Class
Use one of the following code samples to create the keyword Login with the arguments username and password, without using a description for the arguments:
[KeywordGroup("Login Page")] public class LoginPage { // keyword methods }
<KeywordGroup("Login Page")> Public Class LoginPage ' keyword methods End Class