获取担任模板的源,当SPWebTemplate表示自定义 Web 模板的网站的旧类别。
命名空间: Microsoft.SharePoint
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
Public ReadOnly Property FilterCategories As String
Get
用法
Dim instance As SPWebTemplate
Dim value As String
value = instance.FilterCategories
public string FilterCategories { get; }
属性值
类型:System.String
空引用(无 在 Visual Basic 中),如果SPWebTemplate表示,而不是Web 模板的网站定义配置。
"会议",如果SPWebTemplate代表 Web 模板和创建它的源网站使用的任何配置 MPS 网站定义中。
"协作",如果SPWebTemplate代表 Web 模板和创建它的源网站使用从任何其他网站定义,如 STS 或博客的配置。
备注
该属性永远不会读取由附带SharePoint Foundation任何代码。
增强的门户网站或内容管理解决方案基于SharePoint Foundation,如Microsoft SharePoint Server,可能会将此属性用于此处描述的目的,并且可能的值不同的模式中的新增功能介绍这些解决方案。
In general this property can be used to categorize site definition configurations in ways that do not map precisely onto the categorizations that appear in the UI when users are creating a new Web site. (Contrast this property with DisplayCategory.) Since the property is not settable, you must set the value of the FilterCategories attribute of the Configuration element in the WebTemp*.xml file that defines the site definition. (See WebTemp.xml for more information.)
另请参阅
引用
其他资源
Collaborative Application Markup Language (CAML)
How to: Create a Web Site Definition from an Existing Web Site Definition