共用方式為


SPContentTypeUsage.Id property

取得衍生的內容類型的識別項 (ID)。

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

Syntax

'宣告
Public ReadOnly Property Id As SPContentTypeId
    Get
'用途
Dim instance As SPContentTypeUsage
Dim value As SPContentTypeId

value = instance.Id
public SPContentTypeId Id { get; }

Property value

Type: Microsoft.SharePoint.SPContentTypeId
內容類型識別碼。

備註

您可以使用這個屬性的值做為索引,插入SPContentTypeCollection集合在網站或清單層級。請參閱Url屬性的範例。

請參閱

參照

SPContentTypeUsage class

SPContentTypeUsage members

Microsoft.SharePoint namespace

SPContentTypeId

SPBuiltInContentTypeId

其他資源

Content Type IDs

Site and List Content Types