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
spthemeXml
Type: Microsoft.SharePoint.SPFileThe SPFile object for the sptheme XML file.
readPublishedVersion
Type: System.BooleanWhether 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.