IVsaPersistSite.SaveElement Method
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
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.StringA name to associate with the specified source item. This can be a null reference when saving the Project file.
source
Type: System.StringThe source string for the item.