GetAttribute

Element.GetAttribute method

按名称获取属性值。

public string GetAttribute(string name)
参数类型描述
nameString属性名称。

返回值

属性的值。

另请参阅