IVsaPersistSite.SaveElement Method

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.

Namespace:  Microsoft.Vsa
Assembly:  Microsoft.Vsa (in Microsoft.Vsa.dll)

Syntax

'Declaration
<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
)

Parameters

  • name
    Type: System.String

    A name to associate with the specified source item. This can be a null reference when saving the Project file.

See Also

Reference

IVsaPersistSite Interface

Microsoft.Vsa Namespace