Share via


FileSystemXmlRepository.StoreElement(XElement, String) Method

Definition

Adds a top-level XML element to the repository.

public:
 virtual void StoreElement(System::Xml::Linq::XElement ^ element, System::String ^ friendlyName);
public virtual void StoreElement (System.Xml.Linq.XElement element, string friendlyName);
abstract member StoreElement : System.Xml.Linq.XElement * string -> unit
override this.StoreElement : System.Xml.Linq.XElement * string -> unit
Public Overridable Sub StoreElement (element As XElement, friendlyName As String)

Parameters

element
XElement

The element to add.

friendlyName
String

An optional name to be associated with the XML element. For instance, if this repository stores XML files on disk, the friendly name may be used as part of the file name. Repository implementations are not required to observe this parameter even if it has been provided by the caller.

Implements

Applies to