IVsTextScanner.OpenScan 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.
Ouvre la mémoire tampon de texte pour l'analyse.
public:
int OpenScan();
public:
int OpenScan();
int OpenScan();
public int OpenScan ();
abstract member OpenScan : unit -> int
Public Function OpenScan () As Integer
Retours
Si la méthode réussit, retourne S_OK. En cas d'échec, retourne un code d'erreur.
Remarques
Signature COM
À partir de textmgr. idl :
HRESULT IVsTextScanner::OpenScan();
Cette méthode verrouille la mémoire tampon et effectue un test de garbage collection, ce qui est onéreux. par conséquent, vous ne devez pas l’utiliser dans un QueryStatus gestionnaire ou un autre scénario nécessitant beaucoup de vitesse.