Метод SPTheme.OpenFromXml (SPFile, Boolean)
Открытие SPTheme из sptheme файла XML
Пространство имен: 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.SPFileФайл SPFile объекта для XML-файла sptheme.
readPublishedVersion
Тип: System.BooleanСледует ли загружать опубликованной версии файла, или самой последней версии (даже если это черновик).
Возвращаемое значение
Тип: Microsoft.SharePoint.Utilities.SPTheme
Объект SPTheme.