共用方式為


SPFolder.ContentTypeOrder Property

Gets a list of SPContentType objects.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
<SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.InterfaceType)> _
Public ReadOnly Property ContentTypeOrder As IList(Of SPContentType)
    Get
'Usage
Dim instance As SPFolder
Dim value As IList(Of SPContentType)

value = instance.ContentTypeOrder
[SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.InterfaceType)]
public IList<SPContentType> ContentTypeOrder { get; }

Property Value

Type: System.Collections.Generic.IList<SPContentType>
An ordered list of SPContentType objects.

Remarks

The list of content types determines the order in which the content type shows up in the New Item drop-down list. For example, if the order is “document, spec, test plan”, then the items in the New Item drop-down list will be ordered the same way.

See Also

Reference

SPFolder Class

SPFolder Members

Microsoft.SharePoint Namespace