IVsImmediateStatementCompletion2.SetCompletionContext(String, IVsTextLines, TextSpan[], Object, IVsTextView) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Définit le contexte actuel pour la saisie semi-automatique des instructions pour la fenêtre de commande.
public:
int SetCompletionContext(System::String ^ pszFilePath, Microsoft::VisualStudio::TextManager::Interop::IVsTextLines ^ pBuffer, cli::array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> ^ ptsCurStatement, System::Object ^ punkContext, Microsoft::VisualStudio::TextManager::Interop::IVsTextView ^ pTextView);
public:
int SetCompletionContext(Platform::String ^ pszFilePath, Microsoft::VisualStudio::TextManager::Interop::IVsTextLines ^ pBuffer, Platform::Array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> ^ ptsCurStatement, Platform::Object ^ punkContext, Microsoft::VisualStudio::TextManager::Interop::IVsTextView ^ pTextView);
int SetCompletionContext(std::wstring const & pszFilePath, Microsoft::VisualStudio::TextManager::Interop::IVsTextLines const & pBuffer, std::Array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> const & ptsCurStatement, winrt::Windows::Foundation::IInspectable const & punkContext, Microsoft::VisualStudio::TextManager::Interop::IVsTextView const & pTextView);
public int SetCompletionContext (string pszFilePath, Microsoft.VisualStudio.TextManager.Interop.IVsTextLines pBuffer, Microsoft.VisualStudio.TextManager.Interop.TextSpan[] ptsCurStatement, object punkContext, Microsoft.VisualStudio.TextManager.Interop.IVsTextView pTextView);
abstract member SetCompletionContext : string * Microsoft.VisualStudio.TextManager.Interop.IVsTextLines * Microsoft.VisualStudio.TextManager.Interop.TextSpan[] * obj * Microsoft.VisualStudio.TextManager.Interop.IVsTextView -> int
Public Function SetCompletionContext (pszFilePath As String, pBuffer As IVsTextLines, ptsCurStatement As TextSpan(), punkContext As Object, pTextView As IVsTextView) As Integer
Paramètres
- pszFilePath
- String
dans Chemin d’accès au fichier contenant l’instruction en cours.
- pBuffer
- IVsTextLines
dans Mémoire tampon de texte contenant l’instruction en cours.
- ptsCurStatement
- TextSpan[]
dans Étendue de texte de l’instruction actuelle.
- punkContext
- Object
[in] peut être utilisé pour passer un contexte supplémentaire à l’avenir. Si aucun n’est disponible, la valeur NULL est transmise.
- pTextView
- IVsTextView
dans Affichage de texte.
Retours
Retourne S_OK si la méthode réussit.
Remarques
La fenêtre commande appelle cette méthode pour transférer les informations que le débogueur passe via SetCompletionContext .