IEncodingDetector Interface

Attempts to detect the text encoding associated with a stream.

Namespace:  Microsoft.VisualStudio.Text
Assembly:  Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)

Syntax

'Declaration
Public Interface IEncodingDetector
public interface IEncodingDetector
public interface class IEncodingDetector
type IEncodingDetector =  interface end
public interface IEncodingDetector

The IEncodingDetector type exposes the following members.

Methods

  Name Description
Public method GetStreamEncoding Attempts to detect the encoding associated with a stream.

Top

Remarks

This is a MEF component part, and should be exported with the following attribute:

[Export(NameSource=typeof(IEncodingDetector))]

Exports must include a NameAttribute, a ContentTypeAttribute, and optionally an OrderAttribute.

See Also

Reference

Microsoft.VisualStudio.Text Namespace