Add

Add(byte[])

Adds new custom xml part.

public ICustomXmlPart Add(byte[] xmlData)
ParameterTypeDescription
xmlDataByte[]The xml data of new part to be added.

Return Value

Created custom xml part.

Exceptions

exceptioncondition
ArgumentNullExceptionxmlData is null.
ArgumentExceptionxmlData is empty or invalid.

See Also


Add(string)

Adds new custom xml part.

public ICustomXmlPart Add(string xmlString)
ParameterTypeDescription
xmlStringStringThe xml string of new part to be added.

Return Value

Created custom xml part.

Exceptions

exceptioncondition
ArgumentNullExceptionxmlString is null.
ArgumentExceptionxmlString is empty or xml-data is invalid.

See Also


Add(Stream)

Adds new custom xml part.

public ICustomXmlPart Add(Stream inputStream)
ParameterTypeDescription
inputStreamStreamThe inputStream with xml data of new part to be added.

Return Value

Created custom xml part.

Exceptions

exceptioncondition
ArgumentNullExceptioninputStream is null.
ArgumentExceptionData in inputStream is empty or Sinvalid.

See Also