Compartilhar via


SPWebPartCollection.Contains method

NOTE: This API is now obsolete.

Obsoleto. Retorna um valor booleano que indica se a Web Part especificada está contida na coleção.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaração
<ObsoleteAttribute("Use SPLimitedWebPartManager instead.")> _
Public Function Contains ( _
    webPart As WebPart _
) As Boolean
'Uso
Dim instance As SPWebPartCollection
Dim webPart As WebPart
Dim returnValue As Boolean

returnValue = instance.Contains(webPart)
[ObsoleteAttribute("Use SPLimitedWebPartManager instead.")]
public bool Contains(
    WebPart webPart
)

Parâmetros

Valor retornado

Type: System.Boolean
true se a coleção contiver a Web Part; Caso contrário, false.

Ver também

Referência

SPWebPartCollection class

SPWebPartCollection members

Microsoft.SharePoint namespace