Compartilhar via


SPPersistedObjectCollection<T>.GetValue<U> method (Guid)

Recupera um objeto da coleção com a ID e o tipo especificado.

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

Syntax

'Declaração
Public Function GetValue(Of U As SPPersistedObject) ( _
    id As Guid _
) As U
'Uso
Dim instance As SPPersistedObjectCollection
Dim id As Guid
Dim returnValue As U

returnValue = instance.GetValue(id)
public U GetValue<U>(
    Guid id
)
where U : SPPersistedObject

Type parameters

  • U
    O tipo de objeto a ser recuperado.

Parâmetros

  • id
    Type: System.Guid

    Um objeto de System.Guid que identifica o objeto da coleção.

Valor retornado

Type: U
O objeto, se ele existir. Caso contrário, a null reference (Nothing in Visual Basic).

Ver também

Referência

SPPersistedObjectCollection<T> class

SPPersistedObjectCollection<T> members

GetValue overload

Microsoft.SharePoint.Administration namespace