SPWebPartCollection.Add method (WebPart, Boolean)
NOTE: This API is now obsolete.
已過時。
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
<ObsoleteAttribute("Use SPLimitedWebPartManager instead.")> _
Public Function Add ( _
webPart As WebPart, _
throwIfLocked As Boolean _
) As Guid
'用途
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
)
參數
- webPart
Type: System.Web.UI.WebControls.WebParts.WebPart
- throwIfLocked
Type: System.Boolean
傳回值
Type: System.Guid