Share via


WebPartPagesWebService.GetWebPartProperties2 Method

Returns an XML string of all Web Parts associated with a Web Part Page.

Web Service: Web Part PagesWeb Reference: http://<Site>/_vti_bin/WebPartPages.asmx

Syntax

<SoapDocumentMethodAttribute("http://microsoft.com/sharepoint/webpartpages/GetWebPartProperties2", RequestNamespace:="http://microsoft.com/sharepoint/webpartpages", ResponseNamespace:="http://microsoft.com/sharepoint/webpartpages", Use:=SoapBindingUse.Literal, ParameterStyle:=SoapParameterStyle.Wrapped)> _
Public Function GetWebPartProperties2 ( _
    pageUrl As String, _
    storage As Storage, _
    behavior As SPWebServiceBehavior _
) As XmlNode

Dim instance As WebPartPagesWebService
Dim pageUrl As String
Dim storage As Storage
Dim behavior As SPWebServiceBehavior
Dim returnValue As XmlNode

returnValue = instance.GetWebPartProperties2(pageUrl, storage, behavior)
[SoapDocumentMethodAttribute("http://microsoft.com/sharepoint/webpartpages/GetWebPartProperties2", RequestNamespace="http://microsoft.com/sharepoint/webpartpages", ResponseNamespace="http://microsoft.com/sharepoint/webpartpages", Use=SoapBindingUse.Literal, ParameterStyle=SoapParameterStyle.Wrapped)] 
public XmlNode GetWebPartProperties2 (
    string pageUrl,
    Storage storage,
    SPWebServiceBehavior behavior
)

Parameters

  • pageUrl
    The URL of the page containing the Web Part.
  • storage
    A Storage value indicating how the Web Part is stored.
  • behavior
    An SPWebServiceBehavior enumeration object indicating whether the client supports Windows SharePoint Services 2.0 or Windows SharePoint Services 3.0.

Return Value

SoapXmlElement XML string for all the Web Parts on a Web Part Page. This includes the GUIDs, Web Part properties and their values, and Web Part previews in HTML.

Remarks

To access the WebPartPagesWebService service and its methods, set a Web reference to http://Virtual_Server_Name:Port_Number/_vti_adm/WebPartPages.asmx.

See Also

Reference

WebPartPagesWebService Class
WebPartPagesWebService Members
Web Part Pages Web Service