C# Класс JDP.Remediation.Console.AddWebPart

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
filePath string
outputPath string

Открытые методы

Метод Описание
AddWebPartToPage ( string webUrl, string configuredWebPartFileName, string configuredWebPartXmlFilePath, string webPartZoneIndex, string webPartZoneID, string serverRelativePageUrl, string outPutDirectory, string sourceWebPartId = "" ) : bool
AddWebPartt ( Web web, string serverRelativePageUrl, OfficeDevPnP.Core.Entities.WebPartEntity webPartEntity, string sourceWebPartId = "" ) : bool
CheckForWikiFieldOrPublishingPageContentAndUpdate ( WebPartDefinition webPart, Web web, Microsoft webPartPage, string sourceWebPartId = "" ) : void
DoWork ( ) : void
GetPageList ( ClientContext &clientContext ) : List
GetWebPartShortTypeName ( string webPartType ) : string
IsPublishingWeb ( ClientContext clientContext, Web web ) : bool

Приватные методы

Метод Описание
CheckWebPartOrAppPartPresenceInSite ( ClientContext clientContext, string targetWebPartXmlFileName, string targetWebPartXmlFilePath ) : bool
IsFeatureOnWeb ( System.Guid FeatureID, ClientContext clientContext ) : bool

Описание методов

AddWebPartToPage() публичный статический Метод

public static AddWebPartToPage ( string webUrl, string configuredWebPartFileName, string configuredWebPartXmlFilePath, string webPartZoneIndex, string webPartZoneID, string serverRelativePageUrl, string outPutDirectory, string sourceWebPartId = "" ) : bool
webUrl string
configuredWebPartFileName string
configuredWebPartXmlFilePath string
webPartZoneIndex string
webPartZoneID string
serverRelativePageUrl string
outPutDirectory string
sourceWebPartId string
Результат bool

AddWebPartt() публичный статический Метод

public static AddWebPartt ( Web web, string serverRelativePageUrl, OfficeDevPnP.Core.Entities.WebPartEntity webPartEntity, string sourceWebPartId = "" ) : bool
web Web
serverRelativePageUrl string
webPartEntity OfficeDevPnP.Core.Entities.WebPartEntity
sourceWebPartId string
Результат bool

CheckForWikiFieldOrPublishingPageContentAndUpdate() публичный статический Метод

public static CheckForWikiFieldOrPublishingPageContentAndUpdate ( WebPartDefinition webPart, Web web, Microsoft webPartPage, string sourceWebPartId = "" ) : void
webPart WebPartDefinition
web Web
webPartPage Microsoft
sourceWebPartId string
Результат void

DoWork() публичный статический Метод

public static DoWork ( ) : void
Результат void

GetPageList() публичный статический Метод

public static GetPageList ( ClientContext &clientContext ) : List
clientContext ClientContext
Результат List

GetWebPartShortTypeName() публичный статический Метод

public static GetWebPartShortTypeName ( string webPartType ) : string
webPartType string
Результат string

IsPublishingWeb() публичный статический Метод

public static IsPublishingWeb ( ClientContext clientContext, Web web ) : bool
clientContext ClientContext
web Web
Результат bool

Описание свойств

filePath публичное статическое свойство

public static string filePath
Результат string

outputPath публичное статическое свойство

public static string outputPath
Результат string