SP.WebParts.WebPartDefinitionCollection.getById(id) Method
Applies to: SharePoint Foundation 2010
In this article
Return Value
Applies To
Remarks
Returns the Web Part definition object in the collection with a Web Part identifier equal to the id parameter.
var value = SP.WebParts.WebPartDefinitionCollection.getById(id);
Parameters
- id
The Web Part identifier of the Web Part definition to retrieve.
Type: SP.Guid
Return Value
Type: SP.WebParts.WebPartDefinition
Applies To
SP.WebParts.WebPartDefinitionCollection Class
Remarks
All WebPartDefinition objects must have a unique value for their Id property.
See Also
Reference
SP.WebParts.WebPartDefinitionCollection Methods