PickerResults.Add Method

Adds a PickerResult object to the PickerResults collection.

Namespace:  Microsoft.Office.Core
Assembly:  office (in office.dll)

Syntax

'Declaration
Function Add ( _
    Id As String, _
    DisplayName As String, _
    Type As String, _
    SIPId As String, _
    ItemData As Object, _
    SubItems As Object _
) As PickerResult
'Usage
Dim instance As PickerResults
Dim Id As String
Dim DisplayName As String
Dim Type As String
Dim SIPId As String
Dim ItemData As Object
Dim SubItems As Object
Dim returnValue As PickerResult

returnValue = instance.Add(Id, DisplayName, _
    Type, SIPId, ItemData, SubItems)
PickerResult Add(
    string Id,
    string DisplayName,
    string Type,
    string SIPId,
    Object ItemData,
    Object SubItems
)

Parameters

  • SIPId
    Type: System.String

    Currently not supported. The SIPId is the identifier for Office Communication Server. It is used only for the people picking scenario.

  • ItemData
    Type: System.Object

    Specifies the non- displaying item binding data.

  • SubItems
    Type: System.Object

    Displays the purpose or non-display purpose field data of the PickerResult. It is used for passing column values in the Picker Dialog.

Return Value

Type: Microsoft.Office.Core.PickerResult
Returns PickerResult.

See Also

Reference

PickerResults Interface

PickerResults Members

Microsoft.Office.Core Namespace