ExpansionFunction::GetCurrentValue Method ()

 

Gets the current value of the expansion function as a string.

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

public:
virtual String^ GetCurrentValue() abstract

Return Value

Type: System::String^

The current value of the expansion function, otherwise null.

You must implement this method in a class derived from the ExpansionFunction class in order to provide a value for an expansion function. Your implementation of this method can call the GetArgument method to obtain values for any arguments the expansion function may have. Returning a null value indicates that the expansion function could not be evaluated (in which case the default value of the field is shown).

Return to top
Show: