LanguageService::IVsFormatFilterProvider::QueryInvalidEncoding Method (UInt32, 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)

private:
virtual int QueryInvalidEncoding(
	unsigned int format,
	[OutAttribute] String^% pbstrMessage
) sealed = IVsFormatFilterProvider::QueryInvalidEncoding

Parameters

format
Type: System::UInt32

[in] The format to test. This is a value from __VSTFF enumeration.

pbstrMessage
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::Int32

If the format is not supported, returns S_OK; otherwise, return S_FALSE (the format is supported).

The base method calls the other LanguageService::QueryInvalidEncoding and converting the return values of true and false to S_OK and S_FALSE, respectively.

Return to top
Show: