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; }
參數
id
Type: Microsoft.SharePoint.SPContentTypeId內容型別的內容型別 ID。
Property value
Type: Microsoft.SharePoint.SPContentType
SPContentType ,表示指定的內容類型。
請參閱
參照
SPContentTypeCollection members
Microsoft.SharePoint namespace