ISecurityTrimmer2.CheckAccess 方法
请注意:此 API 现在已过时。
一个类中实现时,确定用户是否应查看单个搜索结果。
命名空间: Microsoft.Office.Server.Search.Query
程序集: Microsoft.Office.Server.Search(位于 Microsoft.Office.Server.Search.dll 中)
语法
声明
<ObsoleteAttribute("This method is deprecated, moved to the ISecurityTrimmerPost interface instead.")> _
Function CheckAccess ( _
documentCrawlUrls As IList(Of String), _
sessionProperties As IDictionary(Of String, Object), _
userIdentity As IIdentity _
) As BitArray
用法
Dim instance As ISecurityTrimmer2
Dim documentCrawlUrls As IList(Of String)
Dim sessionProperties As IDictionary(Of String, Object)
Dim userIdentity As IIdentity
Dim returnValue As BitArray
returnValue = instance.CheckAccess(documentCrawlUrls, _
sessionProperties, userIdentity)
[ObsoleteAttribute("This method is deprecated, moved to the ISecurityTrimmerPost interface instead.")]
BitArray CheckAccess(
IList<string> documentCrawlUrls,
IDictionary<string, Object> sessionProperties,
IIdentity userIdentity
)
参数
documentCrawlUrls
类型:System.Collections.Generic.IList<String>爬网 Url 修剪的集合。
sessionProperties
类型:System.Collections.Generic.IDictionary<String, Object>查询的属性。
userIdentity
类型:System.Security.Principal.IIdentity发出该查询的用户标识。
返回值
类型:System.Collections.BitArray
指定是否应在搜索结果显示爬网 URL 在documentCrawlUrls参数中该位置的位掩码。
备注
位掩码必须有一位,每个documentCrawlUrls参数中的项。如果位掩码的值为 1,相应的爬网 URL 应显示在搜索的结果 ;否则不应在搜索结果显示爬网 URL。