IVsContainedLanguage.GetTextViewFilter Method
Returns a text view filter to handle delegated text view filtering responsibility.
Namespace: Microsoft.VisualStudio.TextManager.Interop
Assembly: Microsoft.VisualStudio.TextManager.Interop.8.0 (in Microsoft.VisualStudio.TextManager.Interop.8.0.dll)
Syntax
声明
Function GetTextViewFilter ( _
pISenseHost As IVsIntellisenseHost, _
pNextCmdTarget As IOleCommandTarget, _
<OutAttribute> ByRef pTextViewFilter As IVsTextViewFilter _
) As Integer
用法
Dim instance As IVsContainedLanguage
Dim pISenseHost As IVsIntellisenseHost
Dim pNextCmdTarget As IOleCommandTarget
Dim pTextViewFilter As IVsTextViewFilter
Dim returnValue As Integer
returnValue = instance.GetTextViewFilter(pISenseHost, _
pNextCmdTarget, pTextViewFilter)
int GetTextViewFilter(
IVsIntellisenseHost pISenseHost,
IOleCommandTarget pNextCmdTarget,
out IVsTextViewFilter pTextViewFilter
)
int GetTextViewFilter(
[InAttribute] IVsIntellisenseHost^ pISenseHost,
[InAttribute] IOleCommandTarget^ pNextCmdTarget,
[OutAttribute] IVsTextViewFilter^% pTextViewFilter
)
abstract GetTextViewFilter :
pISenseHost:IVsIntellisenseHost *
pNextCmdTarget:IOleCommandTarget *
pTextViewFilter:IVsTextViewFilter byref -> int
function GetTextViewFilter(
pISenseHost : IVsIntellisenseHost,
pNextCmdTarget : IOleCommandTarget,
pTextViewFilter : IVsTextViewFilter
) : int
Parameters
- pISenseHost
Type: Microsoft.VisualStudio.TextManager.Interop.IVsIntellisenseHost
[in] An IVsIntellisenseHost object representing the IntelliSense host.
- pNextCmdTarget
Type: Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget
[in] An IOleCommandTarget object representing the command target to pass any unhandled commands to.
- pTextViewFilter
Type: Microsoft.VisualStudio.TextManager.Interop.IVsTextViewFilter%
[out] Returns an IVsTextViewFilter object representing the text view filter that is used by the contained language service to receive any commands passed to the text view.
Return Value
Type: System.Int32
If successful, returns S_OK; otherwise, returns an error code.
Remarks
COM Signature
From singlefileeditor.idl:
HRESULT GetTextViewFilter(
[in] IVsIntellisenseHost* pISenseHost,
[in] IOleCommandTarget* pNextCmdTarget,
[out, retval] IVsTextViewFilter** pTextViewFilter);
.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.