ExtractAttributeValue.AttributeName Property
Gets or sets a value representing the name of the attribute that has the value to extract.
Namespace: Microsoft.VisualStudio.TestTools.WebTesting.Rules
Assembly: Microsoft.VisualStudio.QualityTools.WebTestFramework (in Microsoft.VisualStudio.QualityTools.WebTestFramework.dll)
Syntax
'Declaration
Public Property AttributeName As String
'Usage
Dim instance As ExtractAttributeValue
Dim value As String
value = instance.AttributeName
instance.AttributeName = value
public string AttributeName { get; set; }
public:
property String^ AttributeName {
String^ get ();
void set (String^ value);
}
public function get AttributeName () : String
public function set AttributeName (value : String)
Property Value
Type: System.String
The name of an attribute.
Remarks
This is used to identify the attribute whose value you want to extract. Consider the following HTML:
<input name="MyTextBox" type="text" id="TextBox1" />
<input type="submit" name="Button1" value="Button" id="Button1" />
If you want to extract the id attribute value, set the TagName property to input and the AttributeName property to id.
This returns the value TextBox1, because TextBox1 is the id value in the first input tag found. To extract the id from the second tag, see MatchAttributeName and MatchAttributeValue.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.