Partager via


DeliverableMailItem.TryGetListProperty<ItemT> Method

The TryGetListProperty<ItemT>(String, ReadOnlyCollection<ItemT>) method returns the value of an extended property that is an array or list.

Namespace:  Microsoft.Exchange.Data.Transport
Assembly:  Microsoft.Exchange.Data.Transport (in Microsoft.Exchange.Data.Transport.dll)

Syntax

'Declaration
Public MustOverride Function TryGetListProperty(Of ItemT) ( _
    name As String, _
    <OutAttribute> ByRef value As ReadOnlyCollection(Of ItemT) _
) As Boolean
'Usage
Dim instance As DeliverableMailItem
Dim name As String
Dim value As ReadOnlyCollection(Of ItemT)
Dim returnValue As Boolean

returnValue = instance.TryGetListProperty(name, _
    value)
public abstract bool TryGetListProperty<ItemT>(
    string name,
    out ReadOnlyCollection<ItemT> value
)

Type Parameters

  • ItemT
    The type of the element in the requested list.

Parameters

  • value
    Type: System.Collections.ObjectModel.ReadOnlyCollection<ItemT>
    If a property with the specified name is found, this parameter is set to a collection wrapper for the actual array or list value. If the property is not found, or if the property type does not match the type specified in the ItemT parameter, or if the actual value is a null reference (Nothing in Visual Basic), this parameter is set to a null reference (Nothing in Visual Basic).

Return Value

Type: System.Boolean
The TryGetListProperty<ItemT>(String, ReadOnlyCollection<ItemT>) method returns true if the specified parameter is found; otherwise, the method returns false.