다음을 통해 공유


WebPartPagesWebService.GetWebPartProperties2 Method

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

Namespace:  [Webpartpages Web service]
Web service reference: http://Site/_vti_bin/Webpartpages.asmx

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

Webpartpages Web Service