다음을 통해 공유


WebPartPagesWebService.AddWebPartToZone Method

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

Syntax

'Declaration
<SoapDocumentMethodAttribute("https://microsoft.com/sharepoint/webpartpages/AddWebPartToZone", RequestNamespace := "https://microsoft.com/sharepoint/webpartpages",  _
    ResponseNamespace := "https://microsoft.com/sharepoint/webpartpages",  _
    Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
Public Function AddWebPartToZone ( _
    pageUrl As String, _
    webPartXml As String, _
    storage As Storage, _
    zoneId As String, _
    zoneIndex As Integer _
) As Guid
'Usage
Dim instance As WebPartPagesWebService
Dim pageUrl As String
Dim webPartXml As String
Dim storage As Storage
Dim zoneId As String
Dim zoneIndex As Integer
Dim returnValue As Guid

returnValue = instance.AddWebPartToZone(pageUrl, _
    webPartXml, storage, zoneId, zoneIndex)
[SoapDocumentMethodAttribute("https://microsoft.com/sharepoint/webpartpages/AddWebPartToZone", RequestNamespace = "https://microsoft.com/sharepoint/webpartpages", 
    ResponseNamespace = "https://microsoft.com/sharepoint/webpartpages", 
    Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public Guid AddWebPartToZone(
    string pageUrl,
    string webPartXml,
    Storage storage,
    string zoneId,
    int zoneIndex
)

Parameters

Return Value

Type: System.Guid

See Also

Reference

WebPartPagesWebService Class

WebPartPagesWebService Members

Webpartpages Web Service