SPPersistedObjectCollection<T>.GetValue<U> Method
Retrieves an object from the collection with the specified type and the default name.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
Public Function GetValue(Of U As SPPersistedObject) As U
'Usage
Dim instance As SPPersistedObjectCollection
Dim returnValue As U
returnValue = instance.GetValue()
public U GetValue<U>()
where U : SPPersistedObject
Type Parameters
- U
The type of the object to retrieve.
Return Value
Type: U
The object, if it exists; otherwise, a null reference (Nothing in Visual Basic).
See Also
Reference
SPPersistedObjectCollection<T> Class