SearchContext.UpdateQueryLoggingEnabled 方法
请注意:此 API 现在已过时。
设置SearchContext类的QueryLoggingEnabled属性的值。
命名空间: Microsoft.Office.Server.Search.Administration
程序集: Microsoft.Office.Server.Search(位于 Microsoft.Office.Server.Search.dll 中)
语法
声明
<ObsoleteAttribute("This class is obsolete now. Please use SearchServiceApplication and SearchServiceApplicationProxy instead.")> _
Public Sub UpdateQueryLoggingEnabled ( _
enableQueryLogging As Boolean _
)
用法
Dim instance As SearchContext
Dim enableQueryLogging As Boolean
instance.UpdateQueryLoggingEnabled(enableQueryLogging)
[ObsoleteAttribute("This class is obsolete now. Please use SearchServiceApplication and SearchServiceApplicationProxy instead.")]
public void UpdateQueryLoggingEnabled(
bool enableQueryLogging
)
参数
enableQueryLogging
类型:System.Boolean指定true ,若要启用查询日志记录 ;否则为false要禁用查询日志记录。