共用方式為


SPContentTypeCollection.Item property (SPContentTypeId)

取得具有指定的內容型別識別項 (ID) 的內容類型。

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

Syntax

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

value = instance(id)
public SPContentType this[
    SPContentTypeId id
] { get; }

參數

Property value

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

請參閱

參照

SPContentTypeCollection class

SPContentTypeCollection members

Item overload

Microsoft.SharePoint namespace

其他資源

Content Type IDs

Introduction to Content Types

Site and List Content Types

Base Content Type Hierarchy