AFLibraries.Add Method (String, String)
- Last UpdatedSep 18, 2024
- PI System
- AF SDK 2024
- Developer
Creates a library from an exported string or file.
Namespace: OSIsoft.AF
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.0.1156
Syntax
public AFLibrary Add( string xml, string name )
Public Function Add ( xml As String, name As String ) As AFLibrary Dim instance As AFLibraries Dim xml As String Dim name As String Dim returnValue As AFLibrary returnValue = instance.Add(xml, name)
public: AFLibrary^ Add( String^ xml, String^ name )
member Add : xml : string * name : string -> AFLibrary
Parameters
- xml
- Type: System.String
The XML data to create the library from. If the string is in the form of a file name or URL, it will attempt to load the XML from the file. - name
- Type: System.String
The name to be used for the exported library. See the ValidateName(String, String) method for a description of what is valid when setting the name of the object.
Return Value
Type: AFLibraryReturns the newly created library.
Remarks
To update a library that already exists, the existing library must first be removed
and then added back with the new updates.