共用方式為


SPView.ContentTypeId property

取得或設定與檢視是相關聯,以便只在此內容類型的資料夾的檢視是可用的內容類型的識別碼。

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

Syntax

'宣告
Public Property ContentTypeId As SPContentTypeId
    Get
    Set
'用途
Dim instance As SPView
Dim value As SPContentTypeId

value = instance.ContentTypeId

instance.ContentTypeId = value
public SPContentTypeId ContentTypeId { get; set; }

Property value

Type: Microsoft.SharePoint.SPContentTypeId
SPContentTypeId 物件,表示要用的檢視是相關聯的內容類型的識別碼。

請參閱

參照

SPView class

SPView members

Microsoft.SharePoint namespace