Partilhar via


Método IVsExpansionSession.GetFieldValue

Recupera o valor do campo especificado.

Namespace:  Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop.8.0 (em Microsoft.VisualStudio.TextManager.Interop.8.0.dll)

Sintaxe

'Declaração
Function GetFieldValue ( _
    bstrFieldName As String, _
    <OutAttribute> ByRef pbstrValue As String _
) As Integer
int GetFieldValue(
    string bstrFieldName,
    out string pbstrValue
)
int GetFieldValue(
    [InAttribute] String^ bstrFieldName, 
    [OutAttribute] String^% pbstrValue
)
abstract GetFieldValue : 
        bstrFieldName:string * 
        pbstrValue:string byref -> int
function GetFieldValue(
    bstrFieldName : String, 
    pbstrValue : String
) : int

Parâmetros

  • bstrFieldName
    Tipo: String

    [in] Uma seqüência de caracteres que contém o nome do campo.

  • pbstrValue
    Tipo: String%

    [out] Retorna um string que contém o valor do campo.

Valor de retorno

Tipo: Int32
Se o método for bem-sucedido, ele retorna S_OK.Se ele falhar, ele retorna um código de erro.

Comentários

COM assinatura

De textmgr2.idl:

HRESULT IVsExpansionSession::GetFieldValue(
   [in]BSTR bstrFieldName,
   [out]BSTR *pbstrValue
);

O valor retornado é o valor atual do campo.

Segurança do .NET Framework

Consulte também

Referência

IVsExpansionSession Interface

Namespace Microsoft.VisualStudio.TextManager.Interop