Compartilhar via


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

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

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

Syntax

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

returnValue = instance.GetValue(name)
public U GetValue<U>(
    string name
)
where U : SPPersistedObject

Type parameters

  • U
    O tipo de objeto a ser recuperado.

Parâmetros

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