Share via


WebPartDefinition.WebPart property

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

Namespace:  Microsoft.SharePoint.Client.WebParts
Assembly:  Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)

Syntax

'Declaration
Public ReadOnly Property WebPart As WebPart
    Get
'Usage
Dim instance As WebPartDefinition
Dim value As WebPart

value = instance.WebPart
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