IVsExpansionFunction::GetCurrentValue Method (String^, Int32)
Returns the current value of the expansion function.
Assembly: Microsoft.VisualStudio.TextManager.Interop.8.0 (in Microsoft.VisualStudio.TextManager.Interop.8.0.dll)
int GetCurrentValue( [OutAttribute] String^% bstrValue, [OutAttribute] int% fHasCurrentValue )
Parameters
- bstrValue
-
Type:
System::String^
[out] Returns a string that contains the value of the expansion function.
- fHasCurrentValue
-
Type:
System::Int32
[out] Returns non-zero (true) if the expansion function has a current value; otherwise, returns zero (true). See Remarks.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From textmgr2.idl:
bool IVsExpansionFunction::GetCurrentValue( [out] BSTR *bstrValue, [out] bool *fHasCurrentValue );
If this method returns a value, it is placed into the associated field of the inserted code snippet. If this method does not return a value, as indicated by setting the fHasCurrentValue parameter to zero (false), the expansion function indicates that it has no current value to return. The fhasCurrentValue parameter is typically used by the caller of this method to determine whether to update the field in the code snippet.