Partager via


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)

Syntax

'Declaration
<GuidAttribute("12B43F9F-8550-4FFA-850F-FE9D4D396C20")> _
<ComVisibleAttribute(False)> _
<GuidAttribute("12B43F9F-8550-4FFA-850F-FE9D4D396C20")> _
Public Interface SVsStructuredFileIO
[GuidAttribute("12B43F9F-8550-4FFA-850F-FE9D4D396C20")]
[ComVisibleAttribute(false)]
[GuidAttribute("12B43F9F-8550-4FFA-850F-FE9D4D396C20")]
public interface SVsStructuredFileIO
[GuidAttribute(L"12B43F9F-8550-4FFA-850F-FE9D4D396C20")]
[ComVisibleAttribute(false)]
[GuidAttribute(L"12B43F9F-8550-4FFA-850F-FE9D4D396C20")]
public interface class SVsStructuredFileIO
[<GuidAttribute("12B43F9F-8550-4FFA-850F-FE9D4D396C20")>]
[<ComVisibleAttribute(false)>]
[<GuidAttribute("12B43F9F-8550-4FFA-850F-FE9D4D396C20")>]
type SVsStructuredFileIO =  interface end
public interface SVsStructuredFileIO

Remarks

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.

See Also

Reference

Microsoft.VisualStudio.Shell.Interop Namespace