Share via


SPPersistedObjectCollection<T>.Item property (String)

Gets the persisted object in the collection based on the specified name.

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

Syntax

'Declaration
Public Overridable ReadOnly Property Item ( _
    name As String _
) As T
    Get
'Usage
Dim instance As SPPersistedObjectCollection
Dim name As String
Dim value As T

value = instance.Item(name)
public virtual T this[
    string name
] { get; }

Parameters

  • name
    Type: System.String

    A string that contains the name of the object.

Property value

Type: T
A type that represents the persisted object.

See also

Reference

SPPersistedObjectCollection<T> class

SPPersistedObjectCollection<T> members

Item overload

Microsoft.SharePoint.Administration namespace