Share via


WebPartPagesWebService.GetWebPartProperties2 method

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

Namespace:  WebSvcwebpartpages
Assembly:  STSSOAP (in STSSOAP.dll)

Syntax

'Declaration
<SoapDocumentMethodAttribute("https://microsoft.com/sharepoint/webpartpages/GetWebPartProperties2", RequestNamespace := "https://microsoft.com/sharepoint/webpartpages",  _
    ResponseNamespace := "https://microsoft.com/sharepoint/webpartpages",  _
    Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
Public Function GetWebPartProperties2 ( _
    pageUrl As String, _
    storage As Storage, _
    behavior As SPWebServiceBehavior _
) As XmlNode
'Usage
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("https://microsoft.com/sharepoint/webpartpages/GetWebPartProperties2", RequestNamespace = "https://microsoft.com/sharepoint/webpartpages", 
    ResponseNamespace = "https://microsoft.com/sharepoint/webpartpages", 
    Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public XmlNode GetWebPartProperties2(
    string pageUrl,
    Storage storage,
    SPWebServiceBehavior behavior
)

Parameters

  • pageUrl
    Type: System.String

    The URL of the page containing the Web Part.

Return value

Type: System.Xml.XmlNode
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

WebSvcwebpartpages namespace