Share via


SPTheme.OpenFromXml method (SPFile, Boolean)

Opens an SPTheme from a sptheme XML file

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

Syntax

'Declaration
Public Shared Function OpenFromXml ( _
    spthemeXml As SPFile, _
    readPublishedVersion As Boolean _
) As SPTheme
'Usage
Dim spthemeXml As SPFile
Dim readPublishedVersion As Boolean
Dim returnValue As SPTheme

returnValue = SPTheme.OpenFromXml(spthemeXml, _
    readPublishedVersion)
public static SPTheme OpenFromXml(
    SPFile spthemeXml,
    bool readPublishedVersion
)

Parameters

  • readPublishedVersion
    Type: System.Boolean

    Whether to load the published version of the file or the most recent version (even if it is a draft).

Return value

Type: Microsoft.SharePoint.Utilities.SPTheme
An SPTheme object.

See also

Reference

SPTheme class

SPTheme members

OpenFromXml overload

Microsoft.SharePoint.Utilities namespace