LanguageService::QueryInvalidEncoding Method (__VSTFF, String^)

 

Determines if the specified source format is valid or not.

Namespace:   Microsoft.VisualStudio.Package
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::Boolean

Returns 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.

Return to top
Show: