SPWebPartCollection.Item property (Guid)
NOTE: This API is now obsolete.
Obsoleto. Obtém o objeto de Web Part com o GUID especificado da coleção. No C#, essa propriedade é um indexador para a classe SPWebPartCollection .
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaração
<ObsoleteAttribute("Use SPLimitedWebPartManager instead.")> _
Public ReadOnly Default Property Item ( _
storageKey As Guid _
) As WebPart
Get
'Uso
Dim instance As SPWebPartCollection
Dim storageKey As Guid
Dim value As WebPart
value = instance(storageKey)
[ObsoleteAttribute("Use SPLimitedWebPartManager instead.")]
public WebPart this[
Guid storageKey
] { get; }
Parâmetros
storageKey
Type: System.GuidUm GUID que identifica a Web Part.
Property value
Type: Microsoft.SharePoint.WebPartPages.WebPart
Um objeto Microsoft.SharePoint.WebPartPages.WebPart que representa a Web Part.