IVsExpansionSession.GetFieldValue(String, String) Method

Definition

Retrieves the value of the specified field.

public:
 int GetFieldValue(System::String ^ bstrFieldName, [Runtime::InteropServices::Out] System::String ^ % pbstrValue);
int GetFieldValue(std::wstring const & bstrFieldName, [Runtime::InteropServices::Out] std::wstring const & & pbstrValue);
public int GetFieldValue (string bstrFieldName, out string pbstrValue);
abstract member GetFieldValue : string * string -> int
Public Function GetFieldValue (bstrFieldName As String, ByRef pbstrValue As String) As Integer

Parameters

bstrFieldName
String

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

pbstrValue
String

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

Returns

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.

Applies to