HtmlTag.GetAttributeValueAsString Method
Gets the value of a specified attribute in string format.
Namespace: Microsoft.VisualStudio.TestTools.WebTesting
Assembly: Microsoft.VisualStudio.QualityTools.WebTestFramework (in Microsoft.VisualStudio.QualityTools.WebTestFramework.dll)
Syntax
'Declaration
Public Function GetAttributeValueAsString ( _
attributeName As String _
) As String
public string GetAttributeValueAsString(
string attributeName
)
public:
String^ GetAttributeValueAsString(
String^ attributeName
)
member GetAttributeValueAsString :
attributeName:string -> string
public function GetAttributeValueAsString(
attributeName : String
) : String
Parameters
attributeName
Type: StringThe name of the attribute. Used as the key to look up the attribute value.
Return Value
Type: String
An attribute value in a string format.
Remarks
If the attribute name does not exist, this method returns nulla null reference (Nothing in Visual Basic).
.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.