ExpansionFunction.FieldChanged Method

Called when a field has changed its value.

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

Syntax

'宣言
Public Overridable Function FieldChanged ( _
    bstrField As String, _
    <OutAttribute> ByRef fRequeryValue As Integer _
) As Integer
'使用
Dim instance As ExpansionFunction
Dim bstrField As String
Dim fRequeryValue As Integer
Dim returnValue As Integer

returnValue = instance.FieldChanged(bstrField, _
    fRequeryValue)
public virtual int FieldChanged(
    string bstrField,
    out int fRequeryValue
)
public:
virtual int FieldChanged(
    String^ bstrField, 
    [OutAttribute] int% fRequeryValue
)
public function FieldChanged(
    bstrField : String, 
    fRequeryValue : int
) : int

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.

Implements

IVsExpansionFunction.FieldChanged(String, Int32%)

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.

Permissions

See Also

Reference

ExpansionFunction Class

ExpansionFunction Members

Microsoft.VisualStudio.Package Namespace