Share via


IVsLanguageDebugInfo2.QueryCommonLanguageBlock, méthode

Détermine si l'emplacement spécifié est contenu dans un type spécifié de bloc de gestionnaire d'exceptions.

Espace de noms :  Microsoft.VisualStudio.TextManager.Interop
Assembly :  Microsoft.VisualStudio.TextManager.Interop.8.0 (dans Microsoft.VisualStudio.TextManager.Interop.8.0.dll)

Syntaxe

'Déclaration
Function QueryCommonLanguageBlock ( _
    pBuffer As IVsTextBuffer, _
    iLine As Integer, _
    iCol As Integer, _
    dwFlag As UInteger, _
    <OutAttribute> ByRef pfInBlock As Integer _
) As Integer
int QueryCommonLanguageBlock(
    IVsTextBuffer pBuffer,
    int iLine,
    int iCol,
    uint dwFlag,
    out int pfInBlock
)
int QueryCommonLanguageBlock(
    [InAttribute] IVsTextBuffer^ pBuffer, 
    [InAttribute] int iLine, 
    [InAttribute] int iCol, 
    [InAttribute] unsigned int dwFlag, 
    [OutAttribute] int% pfInBlock
)
abstract QueryCommonLanguageBlock : 
        pBuffer:IVsTextBuffer * 
        iLine:int * 
        iCol:int * 
        dwFlag:uint32 * 
        pfInBlock:int byref -> int
function QueryCommonLanguageBlock(
    pBuffer : IVsTextBuffer, 
    iLine : int, 
    iCol : int, 
    dwFlag : uint, 
    pfInBlock : int
) : int

Paramètres

  • iLine
    Type : Int32

    [in] ligne pour examiner.

  • iCol
    Type : Int32

    [in] colonne à examiner.

  • dwFlag
    Type : UInt32

    [in] valeur d'Un depuis l'énumération d'COMMONLANGUAGEBLOCK spécifiant que bloc commun pour rechercher.

  • pfInBlock
    Type : Int32%

    [] retourne non nul si iLine et iCol se trouve à l'intérieur de le bloc spécifié de langage commun ; sinon, retours zéro.

Valeur de retour

Type : Int32
Si la méthode réussit, elle retourne S_OK.En cas d'échec, un code d'erreur est retourné.

Notes

Signature de COM

De textmgr.idl :

HRESULT IVsLanguageDebugInfo2::QueryCommonLanguageBlock(
   [in] IVsTextBuffer *pBuffer,
   [in] long iLine,
   [in] long iCol,
   [in] DWORD dwFlag,
   [out] BOOL *pfInBlock
);

Un bloc commun de gestionnaire d'exceptions est selon le langage implémenté par le service de langage mais comprend en général un bloc d'try et un bloc d'catch. Certains langages prennent en charge un bloc supplémentaire indépendamment est exécuté si une exception s'est produite ; par exemple, le C- a le bloc d'finally.

Sécurité .NET Framework

Voir aussi

Référence

IVsLanguageDebugInfo2 Interface

Microsoft.VisualStudio.TextManager.Interop, espace de noms