SearchConfigurationPortability.ImportSearchConfiguration 方法 (SearchObjectOwner, String, Dictionary<String, String>)

导入包含在服务器级别的网站,由owningScopesearchConfiguration搜索配置设置。此方法允许对某些类似ItemTemplateId()的搜索配置设置中的字段和GroupTemplateId()CreateResultBlockActions对象中,并在ResultItemTypeDisplayTemplateUrl对象包含已标记,将被指定的标记值。

命名空间:  Microsoft.Office.Server.Search.Portability
程序集:  Microsoft.Office.Server.Search(位于 Microsoft.Office.Server.Search.dll 中)

语法

声明
Public Sub ImportSearchConfiguration ( _
    owningScope As SearchObjectOwner, _
    searchConfiguration As String, _
    tokens As Dictionary(Of String, String) _
)
用法
Dim instance As SearchConfigurationPortability
Dim owningScope As SearchObjectOwner
Dim searchConfiguration As String
Dim tokens As Dictionary(Of String, String)

instance.ImportSearchConfiguration(owningScope, _
    searchConfiguration, tokens)
public void ImportSearchConfiguration(
    SearchObjectOwner owningScope,
    string searchConfiguration,
    Dictionary<string, string> tokens
)

参数

  • searchConfiguration
    类型:System.String

    保存搜索配置设置了前面使用方法生成的**ExportSearchConfiguration()**文件包的名称String

另请参阅

引用

SearchConfigurationPortability 类

SearchConfigurationPortability 成员

ImportSearchConfiguration 重载

Microsoft.Office.Server.Search.Portability 命名空间