SPWebTemplate.Name 属性
命名空间: Microsoft.SharePoint
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
Public ReadOnly Property Name As String
Get
用法
Dim instance As SPWebTemplate
Dim value As String
value = instance.Name
public string Name { get; }
属性值
类型:System.String
表示的名称 ; String例如,"STS #0"或者"MyCustomWebTemplate"。
备注
If the SPWebTemplate represents a site definition configuration, this property is a concatenation of the Name attribute of a Template element in a WebTemp*.xml file and the ID attribute of one of the child Configuration elements of the Template element. (See WebTemp.xml for more information.) There is a "#" character in between the two parts; for example "MPS#1" or "MyCustomSiteDefinition#0".
如果SPWebTemplate代表Web 模板,此属性将返回WebTemplate元素的Name属性中存储的 Web 模板的.wsp 文件中包含的elements.xml文件。