Condividi tramite


Metodo IVsHiddenTextClient.GetMarkerCommandInfo

Informazioni sui comandi del marcatore di restituisce.

Spazio dei nomi:  Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)

Sintassi

'Dichiarazione
Function GetMarkerCommandInfo ( _
    pHidReg As IVsHiddenRegion, _
    iItem As Integer, _
    <OutAttribute> pbstrText As String(), _
    <OutAttribute> pcmdf As UInteger() _
) As Integer
int GetMarkerCommandInfo(
    IVsHiddenRegion pHidReg,
    int iItem,
    string[] pbstrText,
    uint[] pcmdf
)
int GetMarkerCommandInfo(
    [InAttribute] IVsHiddenRegion^ pHidReg, 
    [InAttribute] int iItem, 
    [OutAttribute] array<String^>^ pbstrText, 
    [OutAttribute] array<unsigned int>^ pcmdf
)
abstract GetMarkerCommandInfo : 
        pHidReg:IVsHiddenRegion * 
        iItem:int * 
        pbstrText:string[] byref * 
        pcmdf:uint32[] byref -> int
function GetMarkerCommandInfo(
    pHidReg : IVsHiddenRegion, 
    iItem : int, 
    pbstrText : String[], 
    pcmdf : uint[]
) : int

Parametri

  • iItem
    Tipo: Int32

    [in] Intero che identifica il numero di elemento per il comando del menu di scelta rapida di un tipo dei marcatori. I valori variano in genere da 0 a 9, ma il tipo del marcatore può supportare anche i valori da 101 a 103 del comando. Per ulteriori informazioni su questi valori di comando, vedere MarkerCommandValues.

  • pbstrText
    Tipo: array<String[]

    [out] Puntatore a una stringa che individua il testo del tipo del marcatore dal menu di scelta rapida.

  • pcmdf
    Tipo: array<UInt32[]

    [out] Specifica i flag di comando. valori per pcmdf vengono ricavati da OLECMDF enumerazione in Platform SDK.

Valore restituito

Tipo: Int32
Se il metodo ha esito positivo, restituisce S_OK.Se non riesce, restituisce un codice di errore.

Note

Firma COM

da textmgr.idl:

HRESULT IVsHiddenTextClient::GetMarkerCommandInfo(
   [in] IVsHiddenRegion *pHidReg, 
   [in] long iItem, 
   [out, custom(uuid_IVsHiddenTextClient, "optional")] BSTR * pbstrText, 
   [out] DWORD* pcmdf
);

Utilizzare questo metodo per restituire le informazioni sui comandi associate a un tipo specificato del marcatore. utilizzo ExecMarkerCommand per eseguire il comando nel tipo del marcatore.

Sicurezza di .NET Framework

Vedere anche

Riferimenti

IVsHiddenTextClient Interfaccia

Spazio dei nomi Microsoft.VisualStudio.TextManager.Interop