ExpansionFunction::FieldChanged Method (String^, Int32)

 

Called when a field has changed its value.

Namespace:   Microsoft.VisualStudio.Package
Assembly:  Microsoft.VisualStudio.Package.LanguageService.14.0 (in Microsoft.VisualStudio.Package.LanguageService.14.0.dll)

public:
virtual int FieldChanged(
	String^ bstrField,
	[OutAttribute] int% fRequeryValue
)

Parameters

bstrField
Type: System::String^

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

fRequeryValue
Type: System::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.

Return Value

Type: System::Int32

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

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.

Return to top
Show: