LanguageService::QueryInvalidEncoding Method (__VSTFF, String^)
Visual Studio 2015
Determines if the specified source format is valid or not.
Assembly: Microsoft.VisualStudio.Package.LanguageService.14.0 (in Microsoft.VisualStudio.Package.LanguageService.14.0.dll)
public: virtual bool QueryInvalidEncoding( __VSTFF format, [OutAttribute] String^% errorMessage )
Parameters
- format
-
Type:
Microsoft.VisualStudio.TextManager.Interop::__VSTFF
[in] The format to test. This is a value from __VSTFF enumeration.
- errorMessage
-
Type:
System::String^
[out] An error string describing why or how the format is invalid. Could be as simple as "The XX format is not supported."
Return Value
Type: System::BooleanReturns true if the format is not supported by the language service; otherwise, returns false (the format is supported).
If you return true to indicate an unsupported format, you must also supply an error message explaining which specific format is unsupported.
The base method always returns false (all encodings are supported) and a null value for errorMessage.
Show: