Table of contents
TOC
Collapse the table of content
Expand the table of content

PickerResult Object (Office)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

Represents a resolved or selected item of data.

Example

The following code sets the Picker Dialog properties and then displays the Picker dialog.

Dim objPickerDialog As PickerDialog 
Dim objPickerProperties As PickerProperties 
Dim objPickerProperty As PickerProperty 
Dim objPickerExistingResults As PickerResults 
Dim objPickerExistingResult As PickerResult 
Dim objPickerResults As PickerResults 


' Configure the Picker Dialog properties. 
Set objPickerDialog = Application.PickerDialog 
objPickerDialog.DataHandlerId = "{000CDF0A-0000-0000-C000-000000000046}" 
objPickerDialog.Title = "Sample Picker Dialog" 
Set objPickerProperties = objPickerDialog.Properties 
Set objPickerProperty = objPickerProperties.Add("SiteUrl", "http://my", msoPickerFieldtypeText) 
Set objPickerExistingResults = objPickerDialog.CreatePickerResults 
Set objPickerExistingResult = objPickerExistingResults.Add("johndoe@contoso.com", "John Doe", "User") 

' Show the Picker Dialog and get the results. 
Set objPickerResults = objPickerDialog.Show(True, objPickerExistingResult)

Properties

Name
Application
Creator
DisplayName
DuplicateResults
Fields
Id
ItemData
SIPId
SubItems
Type

See also

Other resources

Object Model Reference

© 2017 Microsoft