HtmlTagTryGetAttribute 方法 |
Get attribute value for given attribute name or null if not exists.
命名空间:
DSkin.Html.Core.Dom
程序集:
DSkin (在 DSkin.dll 中) 版本:16.6.3.22
语法 public string TryGetAttribute(
string attribute,
string defaultValue = null
)
参数
- attribute
- 类型:SystemString
attribute name to get by - defaultValue (Optional)
- 类型:SystemString
optional: value to return if attribute is not specified
返回值
类型:
Stringattribute value or null if not found
参见