Share via


QueryBasedCollection<T>.Item property (Guid)

Gets an item by its unique identifier (ID).

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

Syntax

'Declaration
Public ReadOnly Default Property Item ( _
    uniqueId As Guid _
) As T
    Get
'Usage
Dim instance As QueryBasedCollection
Dim uniqueId As Guid
Dim value As T

value = instance(uniqueId)
public T this[
    Guid uniqueId
] { get; }

Parameters

Property value

Type: T
The item matching the unique ID.

Exceptions

Exception Condition
ArgumentNullException

The UniqueId parameter cannot be a null reference (Nothing in Visual Basic).

ArgumentException

The UniqueId is not valid.

See also

Reference

QueryBasedCollection<T> class

QueryBasedCollection<T> members

Item overload

Microsoft.SharePoint.Publishing namespace

Item

Item

UniqueId

Item