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
'Usage
Dim instance As IVsExpansionSession 
Dim bstrFieldName As String 
Dim pbstrValue As String 
Dim returnValue As Integer 

returnValue = instance.GetFieldValue(bstrFieldName, _
    pbstrValue)
int GetFieldValue(
    string bstrFieldName,
    out string pbstrValue
)
int GetFieldValue(
    [InAttribute] String^ bstrFieldName, 
    [OutAttribute] String^% pbstrValue
)
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

IVsExpansionSession Members

Microsoft.VisualStudio.TextManager.Interop Namespace