IVsaPersistSite 接口

定义

注意

Use of this type is not recommended because it is being deprecated in Visual Studio 2005; there will be no replacement for this feature. Please see the ICodeCompiler documentation for additional help.

对项目持久性进行管理,并对使用由主机实现的保存和加载操作的代码和其他项进行存储和检索。Manages project persistence and stores and retrieves code and other items using save and load operations implemented by the host.

public interface class IVsaPersistSite
[System.Runtime.InteropServices.Guid("E0C0FFE3-7eea-4ee2-b7e4-0080c7eb0b74")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface IVsaPersistSite
[System.Runtime.InteropServices.Guid("E0C0FFE3-7eea-4ee2-b7e4-0080c7eb0b74")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
[System.Obsolete("Use of this type is not recommended because it is being deprecated in Visual Studio 2005; there will be no replacement for this feature. Please see the ICodeCompiler documentation for additional help.")]
public interface IVsaPersistSite
[<System.Runtime.InteropServices.Guid("E0C0FFE3-7eea-4ee2-b7e4-0080c7eb0b74")>]
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
type IVsaPersistSite = interface
[<System.Runtime.InteropServices.Guid("E0C0FFE3-7eea-4ee2-b7e4-0080c7eb0b74")>]
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
[<System.Obsolete("Use of this type is not recommended because it is being deprecated in Visual Studio 2005; there will be no replacement for this feature. Please see the ICodeCompiler documentation for additional help.")>]
type IVsaPersistSite = interface
Public Interface IVsaPersistSite
属性

方法

LoadElement(String)

获取以前使用 SaveElement 方法保存的源字符串。Gets the source string previously saved using the SaveElement method.

SaveElement(String, String)

使用给定名称参数保存任意源字符串,然后可在调用 LoadElement 方法时使用以便重载该字符串。Saves an arbitrary source string with a given name parameter, which can then be used in a call to the LoadElement method to reload the string.

适用于