ExpansionFunction.FieldChanged(String, Int32) Method

Definition

Called when a field has changed its value.

public:
 virtual int FieldChanged(System::String ^ bstrField, [Runtime::InteropServices::Out] int % fRequeryValue);
 virtual int FieldChanged(std::wstring const & bstrField, [Runtime::InteropServices::Out] int & fRequeryValue);
public virtual int FieldChanged (string bstrField, out int fRequeryValue);
abstract member FieldChanged : string * int -> int
override this.FieldChanged : string * int -> int
Public Overridable Function FieldChanged (bstrField As String, ByRef fRequeryValue As Integer) As Integer

Parameters

bstrField
String

[in] The name of the field that was changed.

fRequeryValue
Int32

[out] Returns nonzero if the expansion function depends on the value of the specified field and needs to be re-queried; otherwise, returns zero.

Returns

Int32

If successful, returns S_OK; otherwise, returns an error code.

Implements

Remarks

This method is called to determine if the expansion function needs to recalculate its value if the value depends on the specified field.

This method is an implementation of the FieldChanged method on the IVsExpansionFunction interface.

The base method searches the list of arguments for a matching field. If the field is found, the base method set fRequiryFunction to 1 and returns S_OK; otherwise, the base method sets fRequiryFunction to 0 and returns S_OK.

Applies to