Compartir a través de


IVsExpansionSession.GetFieldValue Method

Retrieves the value of the specified field.

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

Syntax

'Declaration
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

Parameters

  • bstrFieldName
    Type: System.String

    [in] A string containing the name of the field.

  • pbstrValue
    Type: System.String%

    [out] Returns a string containing the value of the field.

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From textmgr2.idl:

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

The value returned is the current value of the field.

.NET Framework Security

See Also

Reference

IVsExpansionSession Interface

Microsoft.VisualStudio.TextManager.Interop Namespace