Printer Friendly Version      Send     
Click to Rate and Give Feedback
MSDN
MSDN Library
Web Development
Server Technologies
SDK Documentation
SPWeb Class
SPWeb Properties
 AvailableContentTypes Property
SPWeb.AvailableContentTypes Property (Microsoft.SharePoint)
Gets the collection of all content type templates that apply to the current scope, including those of the current Web site, as well as any parent Web sites.

Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in microsoft.sharepoint.dll)
Visual Basic (Declaration)
Public ReadOnly Property AvailableContentTypes As SPContentTypeCollection
Visual Basic (Usage)
Dim instance As SPWeb
Dim value As SPContentTypeCollection

value = instance.AvailableContentTypes
C#
public SPContentTypeCollection AvailableContentTypes { get; }

Property Value

An SPContentTypeCollection object that represents the content types.

Use the ContentTypes property to return only the content types of the current Web site.

© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker