SPWebPartCollection.Add method (String)
NOTE: This API is now obsolete.
已過時。根據指定的 Web 組件定義檔案集合中新增網頁組件。
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
<ObsoleteAttribute("Use SPLimitedWebPartManager instead.")> _
Public Function Add ( _
dwp As String _
) As Guid
'用途
Dim instance As SPWebPartCollection
Dim dwp As String
Dim returnValue As Guid
returnValue = instance.Add(dwp)
[ObsoleteAttribute("Use SPLimitedWebPartManager instead.")]
public Guid Add(
string dwp
)
參數
- dwp
Type: System.String
傳回值
Type: System.Guid
識別 [網頁組件的 GUID。