IVsImmediateStatementCompletion2.SetCompletionContext Method
Namespace: Microsoft.VisualStudio.TextManager.Interop
Assembly: Microsoft.VisualStudio.TextManager.Interop.8.0 (in Microsoft.VisualStudio.TextManager.Interop.8.0.dll)
Syntax
‘선언
Function SetCompletionContext ( _
pszFilePath As String, _
pBuffer As IVsTextLines, _
ptsCurStatement As TextSpan(), _
punkContext As Object, _
pTextView As IVsTextView _
) As Integer
‘사용 방법
Dim instance As IVsImmediateStatementCompletion2
Dim pszFilePath As String
Dim pBuffer As IVsTextLines
Dim ptsCurStatement As TextSpan()
Dim punkContext As Object
Dim pTextView As IVsTextView
Dim returnValue As Integer
returnValue = instance.SetCompletionContext(pszFilePath, _
pBuffer, ptsCurStatement, punkContext, _
pTextView)
int SetCompletionContext(
string pszFilePath,
IVsTextLines pBuffer,
TextSpan[] ptsCurStatement,
Object punkContext,
IVsTextView pTextView
)
int SetCompletionContext(
[InAttribute] String^ pszFilePath,
[InAttribute] IVsTextLines^ pBuffer,
[InAttribute] array<TextSpan>^ ptsCurStatement,
[InAttribute] Object^ punkContext,
[InAttribute] IVsTextView^ pTextView
)
abstract SetCompletionContext :
pszFilePath:string *
pBuffer:IVsTextLines *
ptsCurStatement:TextSpan[] *
punkContext:Object *
pTextView:IVsTextView -> int
function SetCompletionContext(
pszFilePath : String,
pBuffer : IVsTextLines,
ptsCurStatement : TextSpan[],
punkContext : Object,
pTextView : IVsTextView
) : int
Parameters
- pszFilePath
Type: System.String
- pBuffer
Type: Microsoft.VisualStudio.TextManager.Interop.IVsTextLines
- ptsCurStatement
Type: array<Microsoft.VisualStudio.TextManager.Interop.TextSpan[]
- punkContext
Type: System.Object
- pTextView
Type: Microsoft.VisualStudio.TextManager.Interop.IVsTextView
Return Value
Type: System.Int32
.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
IVsImmediateStatementCompletion2 Interface