Condividi tramite


SPContentType.XmlDocuments Property

Gets an SPXmlDocumentCollection that represents the XML documents that are stored within the content type.

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

Syntax

'Declaration
Public ReadOnly Property XmlDocuments As SPXmlDocumentCollection
    Get
'Usage
Dim instance As SPContentType
Dim value As SPXmlDocumentCollection

value = instance.XmlDocuments
public SPXmlDocumentCollection XmlDocuments { get; }

Property Value

Type: Microsoft.SharePoint.SPXmlDocumentCollection
The XML documents that are stored within the content type.

Remarks

By design, content types are extensible. You can include custom information in content type definitions by adding special XML nodes. These XML nodes are represented by the XmlDocument Element (ContentType) element in the content type definition, and you can access them programmatically through the object model.

For more information, see Custom Information in Content Types.

See Also

Reference

SPContentType Class

SPContentType Members

Microsoft.SharePoint Namespace

Other Resources

Custom Information in Content Types

Introduction to Content Types

Site and List Content Types

Base Content Type Hierarchy