IVsExpansionFunction::FieldChanged Method (String^, Int32)
Visual Studio 2015
Called when another field in the inserted code snippet is changed.
Assembly: Microsoft.VisualStudio.TextManager.Interop.8.0 (in Microsoft.VisualStudio.TextManager.Interop.8.0.dll)
Parameters
- bstrField
-
Type:
System::String^
[in] Name of the field that changed.
- fRequeryFunction
-
Type:
System::Int32
[out] Returns non-zero (true) if this expansion function's value has changed and must be re-obtained; otherwise, returns zero (false).
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::FieldChanged( [in] BSTR bstrField, [out] bool *fRequeryFunction );
This method is called when another field in the code snippet is changed, typically because the user edited the field. If this method sets the fRequeryFunction parameter to non-zero (true), the GetCurrentValue method should be called to fetch the updated value for this expansion function.
Show: