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
)

参数

  • readPublishedVersion
    类型:System.Boolean

    是否加载该文件的已发布的版本或最新版本 (即使它处于草稿)。

返回值

类型:Microsoft.SharePoint.Utilities.SPTheme
一个 SPTheme 对象。

另请参阅

引用

SPTheme 类

SPTheme 成员

OpenFromXml 重载

Microsoft.SharePoint.Utilities 命名空间