SPWebPartCollection.Add method (WebPart)
NOTE: This API is now obsolete.
Obsoleto. Adiciona a Web Part especificada à coleção.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaração
<ObsoleteAttribute("Use SPLimitedWebPartManager instead.")> _
Public Function Add ( _
webPart As WebPart _
) As Guid
'Uso
Dim instance As SPWebPartCollection
Dim webPart As WebPart
Dim returnValue As Guid
returnValue = instance.Add(webPart)
[ObsoleteAttribute("Use SPLimitedWebPartManager instead.")]
public Guid Add(
WebPart webPart
)
Parâmetros
webPart
Type: Microsoft.SharePoint.WebPartPages.WebPartUm objeto de Web Part que representa a nova Web Part.
Valor retornado
Type: System.Guid
Um GUID que identifica a Web Part.