PickerDialog.Resolve 方法 (Office)

使用 PickerDialog 解析令牌并检索结果。

语法

表达式解析 (TokenTextduplicateDlgMode)

表达 返回 PickerDialog 对象的表达式。

参数

名称 必需/可选 数据类型 说明
TokenText 必需 字符串 要解析的文本字符串。
duplicateDlgMode 必需 Integer

返回值

PickerResults

示例

使用 PickerDialog 对象解析实体。

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", "https://my", msoPickerFieldtypeText) 
 
' Resolve the token by using Picker Dialog and get the results. 
Set objPickerResults = objPickerDialog.Resolve("johndoe", False) 

另请参阅

支持和反馈

有关于 Office VBA 或本文档的疑问或反馈? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。