Share via


WebPartPagesWebService.GetWebPart2 method

Returns the XML data for a dynamic Web Part.

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

Syntax

'Declaration
<SoapDocumentMethodAttribute("https://microsoft.com/sharepoint/webpartpages/GetWebPart2", RequestNamespace := "https://microsoft.com/sharepoint/webpartpages",  _
    ResponseNamespace := "https://microsoft.com/sharepoint/webpartpages",  _
    Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
Public Function GetWebPart2 ( _
    pageurl As String, _
    storageKey As Guid, _
    storage As Storage, _
    behavior As SPWebServiceBehavior _
) As String
'Usage
Dim instance As WebPartPagesWebService
Dim pageurl As String
Dim storageKey As Guid
Dim storage As Storage
Dim behavior As SPWebServiceBehavior
Dim returnValue As String

returnValue = instance.GetWebPart2(pageurl, _
    storageKey, storage, behavior)
[SoapDocumentMethodAttribute("https://microsoft.com/sharepoint/webpartpages/GetWebPart2", RequestNamespace = "https://microsoft.com/sharepoint/webpartpages", 
    ResponseNamespace = "https://microsoft.com/sharepoint/webpartpages", 
    Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public string GetWebPart2(
    string pageurl,
    Guid storageKey,
    Storage storage,
    SPWebServiceBehavior behavior
)

Parameters

  • pageurl
    Type: System.String

    A string containing the URL of the page containing the Web Part

  • storageKey
    Type: System.Guid

    A GUID that identifies the Web Part

Return value

Type: System.String
A string containing the XML for a Web Part to include the type and assembly name fields.

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