共用方式為


SPContentTypeCollection.Item property (String)

取得具有指定的名稱的內容類型。

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

Syntax

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

value = instance(name)
public SPContentType this[
    string name
] { get; }

參數

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