C# Class JDP.Remediation.Console.AddWebPart

Afficher le fichier Open project: OfficeDev/PnP-Transformation Class Usage Examples

Méthodes publiques

Свойство Type Description
filePath string
outputPath string

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
CheckWebPartOrAppPartPresenceInSite ( ClientContext clientContext, string targetWebPartXmlFileName, string targetWebPartXmlFilePath ) : bool
IsFeatureOnWeb ( System.Guid FeatureID, ClientContext clientContext ) : bool

Method Details

AddWebPartToPage() public static méthode

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
Résultat bool

AddWebPartt() public static méthode

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
Résultat bool

CheckForWikiFieldOrPublishingPageContentAndUpdate() public static méthode

public static CheckForWikiFieldOrPublishingPageContentAndUpdate ( WebPartDefinition webPart, Web web, Microsoft webPartPage, string sourceWebPartId = "" ) : void
webPart WebPartDefinition
web Web
webPartPage Microsoft
sourceWebPartId string
Résultat void

DoWork() public static méthode

public static DoWork ( ) : void
Résultat void

GetPageList() public static méthode

public static GetPageList ( ClientContext &clientContext ) : List
clientContext ClientContext
Résultat List

GetWebPartShortTypeName() public static méthode

public static GetWebPartShortTypeName ( string webPartType ) : string
webPartType string
Résultat string

IsPublishingWeb() public static méthode

public static IsPublishingWeb ( ClientContext clientContext, Web web ) : bool
clientContext ClientContext
web Web
Résultat bool

Property Details

filePath public_oe static_oe property

public static string filePath
Résultat string

outputPath public_oe static_oe property

public static string outputPath
Résultat string