Share via


IVsaPersistSite.SaveElement 方法

使用给定名称参数保存任意源字符串,然后可在调用 LoadElement 方法时使用以便重载该字符串。

命名空间:  Microsoft.Vsa
程序集:  Microsoft.Vsa(在 Microsoft.Vsa.dll 中)

语法

声明
<PermissionSetAttribute(SecurityAction.LinkDemand, Name := "FullTrust")> _
Sub SaveElement ( _
    name As String, _
    source As String _
)
[PermissionSetAttribute(SecurityAction.LinkDemand, Name = "FullTrust")]
void SaveElement(
    string name,
    string source
)
[PermissionSetAttribute(SecurityAction::LinkDemand, Name = L"FullTrust")]
void SaveElement(
    String^ name, 
    String^ source
)
[<PermissionSetAttribute(SecurityAction.LinkDemand, Name = "FullTrust")>]
abstract SaveElement : 
        name:string * 
        source:string -> unit
function SaveElement(
    name : String, 
    source : String
)

参数

  • name
    类型:String

    要与指定的源项关联的名称。 保存项目文件时,此名称可以是空引用。

  • source
    类型:String

    项的源字符串。

请参阅

参考

IVsaPersistSite 接口

Microsoft.Vsa 命名空间