Add

CustomXmlPartCollection.Add method (1 of 3)

Adds new custom xml part.

public ICustomXmlPart Add(string xmlString)
Parameter Type Description
xmlString String The xml string of new part to be added.

Return Value

Created custom xml part.

Exceptions

exception condition
ArgumentNullException xmlString is null.
ArgumentException xmlString is empty or xml-data is invalid.

See Also


CustomXmlPartCollection.Add method (2 of 3)

Adds new custom xml part.

public ICustomXmlPart Add(byte[] xmlData)
Parameter Type Description
xmlData Byte[] The xml data of new part to be added.

Return Value

Created custom xml part.

Exceptions

exception condition
ArgumentNullException xmlData is null.
ArgumentException xmlData is empty or invalid.

See Also


CustomXmlPartCollection.Add method (3 of 3)

Adds new custom xml part.

public ICustomXmlPart Add(Stream inputStream)
Parameter Type Description
inputStream Stream The inputStream with xml data of new part to be added.

Return Value

Created custom xml part.

Exceptions

exception condition
ArgumentNullException inputStream is null.
ArgumentException Data in inputStream is empty or invalid.

See Also