IncludeInResultsCallback 委托

定义

重要

此 API 不符合 CLS。

表示将决定是否应在搜索结果中包含文件的方法。

public delegate Microsoft::VisualStudio::Modeling::Shell::IncludeResults IncludeInResultsCallback(System::String ^ fileName, System::UInt32 itemId, IVsHierarchy ^ hierarchy);
[System.CLSCompliant(false)]
public delegate Microsoft.VisualStudio.Modeling.Shell.IncludeResults IncludeInResultsCallback(string fileName, uint itemId, IVsHierarchy hierarchy);
[<System.CLSCompliant(false)>]
type IncludeInResultsCallback = delegate of string * uint32 * IVsHierarchy -> IncludeResults
Public Delegate Function IncludeInResultsCallback(fileName As String, itemId As UInteger, hierarchy As IVsHierarchy) As IncludeResults 

参数

fileName
String

项目文件的名称。

itemId
UInt32

项目文件的 ItemID

hierarchy
IVsHierarchy

项目文件的 IVsHierarchy

返回值

IncludeResults

如果文件应包括在搜索结果中,则为 True; 否则为 false。

属性

适用于