IVsContextualIntellisenseFilterProvider.GetFilter Method
Returns an Intellisense filter for a given projec hierarchy.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)
Syntax
'宣告
Function GetFilter ( _
pHierarchy As IVsHierarchy, _
<OutAttribute> ByRef ppFilter As IVsContextualIntellisenseFilter _
) As Integer
'用途
Dim instance As IVsContextualIntellisenseFilterProvider
Dim pHierarchy As IVsHierarchy
Dim ppFilter As IVsContextualIntellisenseFilter
Dim returnValue As Integer
returnValue = instance.GetFilter(pHierarchy, _
ppFilter)
int GetFilter(
IVsHierarchy pHierarchy,
out IVsContextualIntellisenseFilter ppFilter
)
int GetFilter(
[InAttribute] IVsHierarchy^ pHierarchy,
[OutAttribute] IVsContextualIntellisenseFilter^% ppFilter
)
abstract GetFilter :
pHierarchy:IVsHierarchy *
ppFilter:IVsContextualIntellisenseFilter byref -> int
function GetFilter(
pHierarchy : IVsHierarchy,
ppFilter : IVsContextualIntellisenseFilter
) : int
Parameters
- pHierarchy
Type: Microsoft.VisualStudio.Shell.Interop.IVsHierarchy
[in] Pointer to the IVsHierarchy interface to use in configuring the Intellisense filter.
- ppFilter
Type: Microsoft.VisualStudio.Shell.Interop.IVsContextualIntellisenseFilter%
[out] Pointer to an Intellisense filter, an IVsContextualIntellisenseFilter interface.
Return Value
Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
COM Signature
From vsshell80.idl:
HRESULT IVsContextualIntellisenseFilterProvider::GetFilter(
[in] IVsHierarchy* pHierarchy,
[out] IVsContextualIntellisenseFilter** ppFilter
);
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
IVsContextualIntellisenseFilterProvider Interface