Compartilhar via


SPWebPartCollection.Add method (WebPart, Boolean)

NOTE: This API is now obsolete.

Obsoleta.

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

Syntax

'Declaração
<ObsoleteAttribute("Use SPLimitedWebPartManager instead.")> _
Public Function Add ( _
    webPart As WebPart, _
    throwIfLocked As Boolean _
) As Guid
'Uso
Dim instance As SPWebPartCollection
Dim webPart As WebPart
Dim throwIfLocked As Boolean
Dim returnValue As Guid

returnValue = instance.Add(webPart, throwIfLocked)
[ObsoleteAttribute("Use SPLimitedWebPartManager instead.")]
public Guid Add(
    WebPart webPart,
    bool throwIfLocked
)

Parâmetros

Valor retornado

Type: System.Guid

Ver também

Referência

SPWebPartCollection class

SPWebPartCollection members

Add overload

Microsoft.SharePoint namespace