Share via


GetWebPart Method

The GetWebPart method of the Web Part Pages service returns the XML data for a dynamic Web Part.

Parameters

Return Value

String The XML for a Web Part to include the type and assembly name fields.

Example

The following code example shows a locally defined GetWebPart method that takes a GUID of a Web Part as an argument and obtains information about that Web Part by calling the GetWebPart method of the Web Part Pages service through a proxy. It then displays information about the Web Part. 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