WebPartDefinition.WebPart Property

The WebPart object represents a Web Part on a Web Part Page associated with this WebPartDefinition.

Namespace:  Microsoft.SharePoint.Client.WebParts
Assemblies:   Microsoft.SharePoint.Client.Silverlight (in Microsoft.SharePoint.Client.Silverlight.dll);  Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)

Syntax

'Declaration
<RemoteAttribute> _
Public ReadOnly Property WebPart As WebPart
    Get
'Usage
Dim instance As WebPartDefinition
Dim value As WebPart

value = instance.WebPart
[RemoteAttribute]
public WebPart WebPart { get; }

Property Value

Type: Microsoft.SharePoint.Client.WebParts.WebPart
Returns WebPart.

Remarks

The WebPart object contains additional properties relating to the Web Part represented by this WebPartDefinition object. Each WebPartDefinition object must have exactly one WebPart object associated with it. There can be multiple WebPartDefinition objects with the same value for their WebPart property. Provides operations for moving, deleting, and changing the state of the Web Part.

See Also

Reference

WebPartDefinition Class

WebPartDefinition Members

Microsoft.SharePoint.Client.WebParts Namespace