共用方式為


ListViewWebPart.ViewContentTypeId property

取得或設定與檢視相關聯的內容型別識別項 (ID)。

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

Syntax

'宣告
<BrowsableAttribute(False)> _
<WebPartStorageAttribute(Storage.Shared)> _
Public Property ViewContentTypeId As String
    Get
    Set
'用途
Dim instance As ListViewWebPart
Dim value As String

value = instance.ViewContentTypeId

instance.ViewContentTypeId = value
[BrowsableAttribute(false)]
[WebPartStorageAttribute(Storage.Shared)]
public string ViewContentTypeId { get; set; }

Property value

Type: System.String
與檢視相關聯的內容型別 ID。

備註

如果要設定的值是空字串,則會將值設定為System

請參閱

參照

ListViewWebPart class

ListViewWebPart members

Microsoft.SharePoint.WebPartPages namespace