SPElementDefinition.GetRootAttrVal method
會傳回所定義的根元素中指定之屬性的值。
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
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
Type: System.String字串,指定屬性的名稱。
傳回值
Type: System.String
內含如果屬性不存在,根項目或a null reference (Nothing in Visual Basic)內指定的屬性值的字串。
備註
GetRootAttrVal方法可提供基本的公用程式功能的元素定義中選擇性地指定屬性。