다음을 통해 공유


SPWebPartCollection.Add Method (WebPart, Boolean)

NOTE: This API is now obsolete.

Obsolete.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
<ObsoleteAttribute("Use SPLimitedWebPartManager instead.")> _
Public Function Add ( _
    webPart As WebPart, _
    throwIfLocked As Boolean _
) As Guid
'Usage
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
)

Parameters

Return Value

Type: System.Guid

See Also

Reference

SPWebPartCollection Class

SPWebPartCollection Members

Add Overload

Microsoft.SharePoint Namespace