SPTheme.OpenFromXml 方法 (SPFile, Boolean)
从 sptheme XML 文件将打开 SPTheme
命名空间: Microsoft.SharePoint.Utilities
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
Public Shared Function OpenFromXml ( _
spthemeXml As SPFile, _
readPublishedVersion As Boolean _
) As SPTheme
用法
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
)
参数
spthemeXml
类型:Microsoft.SharePoint.SPFileSPFile sptheme XML 文件的对象。
readPublishedVersion
类型:System.Boolean是否加载该文件的已发布的版本或最新版本 (即使它处于草稿)。
返回值
类型:Microsoft.SharePoint.Utilities.SPTheme
一个 SPTheme 对象。