SPListTemplateCollection.Item 属性 (String)

从集合中获取的列表定义或具有指定名称的列表模板对象。在 Microsoft Visual C#,此属性是SPListTemplateCollection类索引器。

命名空间:  Microsoft.SharePoint
程序集:  Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)

语法

声明
Public ReadOnly Default Property Item ( _
    strName As String _
) As SPListTemplate
    Get
用法
Dim instance As SPListTemplateCollection
Dim strName As String
Dim value As SPListTemplate

value = instance(strName)
public SPListTemplate this[
    string strName
] { get; }

参数

  • strName
    类型:System.String

    一个字符串,包含的名称。

属性值

类型:Microsoft.SharePoint.SPListTemplate
一个代表列表定义或列表模板的Microsoft.SharePoint.SPListTemplate对象。

另请参阅

引用

SPListTemplateCollection 类

SPListTemplateCollection 成员

Item 重载

Microsoft.SharePoint 命名空间