C# Class JDP.Remediation.Console.AddWebPart

显示文件 Open project: OfficeDev/PnP-Transformation Class Usage Examples

Public Properties

Property Type Description
filePath string
outputPath string

Public Methods

Method 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

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

Method Details

AddWebPartToPage() public static method

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
return bool

AddWebPartt() public static method

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
return bool

CheckForWikiFieldOrPublishingPageContentAndUpdate() public static method

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

DoWork() public static method

public static DoWork ( ) : void
return void

GetPageList() public static method

public static GetPageList ( ClientContext &clientContext ) : List
clientContext ClientContext
return List

GetWebPartShortTypeName() public static method

public static GetWebPartShortTypeName ( string webPartType ) : string
webPartType string
return string

IsPublishingWeb() public static method

public static IsPublishingWeb ( ClientContext clientContext, Web web ) : bool
clientContext ClientContext
web Web
return bool

Property Details

filePath public_oe static_oe property

public static string filePath
return string

outputPath public_oe static_oe property

public static string outputPath
return string