HtmlTag.GetAttributeValueAsString 方法
以字串格式取得指定之屬性的值。
命名空間: Microsoft.VisualStudio.TestTools.WebTesting
組件: Microsoft.VisualStudio.QualityTools.WebTestFramework (在 Microsoft.VisualStudio.QualityTools.WebTestFramework.dll 中)
語法
'宣告
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
參數
- attributeName
型別:System.String
屬性的名稱。用來當做查詢屬性值時的索引鍵。
傳回值
型別:System.String
字串格式的屬性值。
備註
如果屬性名稱不存在,這個方法會傳回 nullnull 參考 (即 Visual Basic 中的 Nothing)。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。