SPList.GetDirectChildContentType method
會傳回指定的內容類型的直接子項的內容類型的內容類型識別碼 (ID)。
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Function GetDirectChildContentType ( _
contentTypeId As SPContentTypeId _
) As SPContentTypeId
'用途
Dim instance As SPList
Dim contentTypeId As SPContentTypeId
Dim returnValue As SPContentTypeId
returnValue = instance.GetDirectChildContentType(contentTypeId)
public SPContentTypeId GetDirectChildContentType(
SPContentTypeId contentTypeId
)
參數
contentTypeId
Type: Microsoft.SharePoint.SPContentTypeId上層內容類型的內容類型識別碼。
傳回值
Type: Microsoft.SharePoint.SPContentTypeId
子內容類型的識別碼。
Exceptions
Exception | Condition |
---|---|
ArgumentException | contentTypeId不是有效的內容類型識別碼。 -或- 將指定之內容類型的直接子項內容類型不存在。 |