Partager via


GetWebPartProperties Method

The GetWebPartProperties method of the Web Part Pages service returns an XML string of all Web Parts associated with a Web Part Page.

Parameters

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.

Example

The following code example shows a locally defined GetWebPartProperties method that retrieves information for all the Web Parts on a Web Part Page by calling the GetWebPartProperties method of the Web Part Pages service through a proxy. It then displays the title, GUID, and type of each of the Web Parts. This code example and the proxy are part of a larger example provided for the Web Part Pages service.

Requirements

Platforms: Microsoft Windows Server 2003

Web Reference: http://Server_Name[sites/][Site_Name/]/_vti_bin/WebPartPages.asmx

Security: Code Access Security