IVsaPersistSite.SaveElement, méthode

Enregistre une chaîne source arbitraire avec un paramètre name donné, qu'il est ensuite possible d'utiliser dans le cadre d'un appel de la méthode LoadElement pour recharger la chaîne.

Espace de noms :  Microsoft.Vsa
Assembly :  Microsoft.Vsa (dans Microsoft.Vsa.dll)

Syntaxe

'Déclaration
<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
)

Paramètres

  • name
    Type : String

    Nom à associer à l'élément source spécifié. Il peut s'agir d'une référence null en cas d'enregistrement du fichier projet.

  • source
    Type : String

    Chaîne source de l'élément.

Voir aussi

Référence

IVsaPersistSite Interface

Microsoft.Vsa, espace de noms