SPElementDefinition.GetRootAttrVal 方法
返回定义的根元素内指定特性的值。
命名空间: Microsoft.SharePoint.Administration
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
Protected Function GetRootAttrVal ( _
attrName As String _
) As String
用法
Dim attrName As String
Dim returnValue As String
returnValue = Me.GetRootAttrVal(attrName)
protected string GetRootAttrVal(
string attrName
)
参数
attrName
类型:System.String一个字符串,指定的特性的名称。
返回值
类型:System.String
一个字符串,其中包含的属性,如果该属性不存在指定的根元素或空引用(无 在 Visual Basic 中)中的值。
备注
GetRootAttrVal方法 (可选) 指定属性在元素定义中提供的基本的实用工具函数。