Compartir a través de


(WebPart, Boolean) del método SPWebPartCollection.Add

NOTA: esta API está ahora obsoleta.

Obsoleta.

Espacio de nombres:  Microsoft.SharePoint
Ensamblado:  Microsoft.SharePoint (en Microsoft.SharePoint.dll)

Sintaxis

'Declaración
<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 devuelto

Tipo: System.Guid

Vea también

Referencia

clase SPWebPartCollection

Miembros SPWebPartCollection

Sobrecarga Add

Espacio de nombres Microsoft.SharePoint