IVsTextViewIntellisenseHost.GetContextSelection-Methode
Namespace: Microsoft.VisualStudio.TextManager.Interop
Assembly: Microsoft.VisualStudio.TextManager.Interop.8.0 (in Microsoft.VisualStudio.TextManager.Interop.8.0.dll)
Syntax
'Declaration
Function GetContextSelection ( _
<OutAttribute> pSelectionSpan As TextSpan() _
) As Integer
int GetContextSelection(
TextSpan[] pSelectionSpan
)
int GetContextSelection(
[OutAttribute] array<TextSpan>^ pSelectionSpan
)
abstract GetContextSelection :
pSelectionSpan:TextSpan[] byref -> int
function GetContextSelection(
pSelectionSpan : TextSpan[]
) : int
Parameter
pSelectionSpan
Typ: array<Microsoft.VisualStudio.TextManager.Interop.TextSpan[]
Rückgabewert
Typ: Int32
Wenn die Methode erfolgreich ausgeführt, gibt sie NativeMethods.S_OK zurück.Bei einem Fehler wird ein Fehlercode zurückgegeben.
Hinweise
Von singlefileeditor.idl:
HRESULT IVsTextViewIntellisenseHost::GetContextSelection([out] TextSpan *pSelectionSpan);
.NET Framework-Sicherheit
- Volle Vertrauenswürdigkeit für den unmittelbaren Aufrufer. Dieser Member kann von nur teilweise vertrauenswürdigem Code nicht verwendet werden. Weitere Informationen finden Sie unter Verwenden von Bibliotheken aus teilweise vertrauenswürdigem Code.