ExpansionProvider::GetFieldValue Method (String^, String^)
Visual Studio 2015
Returns the value of the specified field.
Assembly: Microsoft.VisualStudio.Package.LanguageService.14.0 (in Microsoft.VisualStudio.Package.LanguageService.14.0.dll)
Parameters
- field
-
Type:
System::String^
[in] A string containing the name of the field for which to get a value.
- value
-
Type:
System::String^
[out] A string containing the value of the field.
Return Value
Type: System::BooleanIf there is an expansion session in progress and the specified field exists and contains a value, returns true; otherwise, returns false.
A field is a part of the snippet template for which different values can be substituted, possibly from an expansion function.
The base method calls the GetFieldValue method on the IVsExpansionSession object that was obtained in the InsertSpecificExpansion or InsertNamedExpansion methods.
Show: