共用方式為


SPContentTypeCollection.Item property (Int32)

取得指定索引處的內容類型,集合中。

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'宣告
Public ReadOnly Default Property Item ( _
    index As Integer _
) As SPContentType
    Get
'用途
Dim instance As SPContentTypeCollection
Dim index As Integer
Dim value As SPContentType

value = instance(index)
public SPContentType this[
    int index
] { get; }

參數

  • index
    Type: System.Int32

    集合中的內容類型的索引。

Property value

Type: Microsoft.SharePoint.SPContentType
SPContentType ,表示指定的內容類型。

請參閱

參照

SPContentTypeCollection class

SPContentTypeCollection members

Item overload

Microsoft.SharePoint namespace

其他資源

Introduction to Content Types

Site and List Content Types

Base Content Type Hierarchy