ExpansionFunction.FieldChanged Method
Called when a field has changed its value.
Namespace: Microsoft.VisualStudio.Package
Assemblies: Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
Syntax
'Declaration
Public Overridable Function FieldChanged ( _
bstrField As String, _
<OutAttribute> ByRef fRequeryValue As Integer _
) As Integer
public virtual int FieldChanged(
string bstrField,
out int fRequeryValue
)
public:
virtual int FieldChanged(
String^ bstrField,
[OutAttribute] int% fRequeryValue
)
abstract FieldChanged :
bstrField:string *
fRequeryValue:int byref -> int
override FieldChanged :
bstrField:string *
fRequeryValue:int byref -> int
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.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.