SPWebPartCollection.Add method (String)
NOTE: This API is now obsolete.
Obsoleto. Adiciona uma Web Part para a coleção com base no arquivo de definição de Web Part especificado.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaração
<ObsoleteAttribute("Use SPLimitedWebPartManager instead.")> _
Public Function Add ( _
dwp As String _
) As Guid
'Uso
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
)
Parâmetros
- dwp
Type: System.String
Valor retornado
Type: System.Guid
Um GUID que identifica a Web Part.