This topic has not yet been rated - Rate this topic

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)

[GuidAttribute("12B43F9F-8550-4FFA-850F-FE9D4D396C20")] 
[GuidAttribute("12B43F9F-8550-4FFA-850F-FE9D4D396C20")] 
public interface SVsStructuredFileIO
/** @attribute GuidAttribute("12B43F9F-8550-4FFA-850F-FE9D4D396C20") */ 
/** @attribute GuidAttribute("12B43F9F-8550-4FFA-850F-FE9D4D396C20") */ 
public interface SVsStructuredFileIO
GuidAttribute("12B43F9F-8550-4FFA-850F-FE9D4D396C20") 
GuidAttribute("12B43F9F-8550-4FFA-850F-FE9D4D396C20") 
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.

For more information on implementing this interface, see the Basic Project Sample, Figures Project Sample, and My C Package Sample samples.

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ