IXmlRepository.StoreElement(XElement, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds a top-level XML element to the repository.
public:
void StoreElement(System::Xml::Linq::XElement ^ element, System::String ^ friendlyName);
public void StoreElement (System.Xml.Linq.XElement element, string friendlyName);
abstract member StoreElement : System.Xml.Linq.XElement * string -> unit
Public 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.
Remarks
The 'friendlyName' parameter must be unique if specified. For instance, it could be the id of the key being stored.