SVsStructuredFileIO Interface

Passed to GetService to return a reference to IVsStructuredFileIO.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

public interface SVsStructuredFileIO

The IVsStructuredFileIO interface is designed to provide a common way to perform multi-format saves, and includes some rudimentary support for working with IPersistFileFormat. The IPersistFileFormat support, including support for the GetFormatList method, is oriented toward a single semantic file type that can be saved in any of a number of on-disk forms such as UTF-8, Unicode, or MBCS.

The IVsStructuredFileIOHelper interface works with IVsStructuredFileIO and is provided to load tokens found in persisted files that are to be loaded with localized strings. For example, the IVsStructuredFileIO implementation looks for property values of the form "nnnn" (where "nnnn" is a series of decimal digits) and will request string ID nnnn to be loaded via LoadLocalizedString.

Community Additions