Initializes a new instance of the EmbeddedFile class.

EmbeddedFile(String, Microsoft.Win32.SafeHandles.SafeFileHandle, String)

public EmbeddedFile(string fileName, Microsoft.Win32.SafeHandles.SafeFileHandle handle, string metaData);
Public Sub New(ByVal fileName As String, ByVal handle As Microsoft.Win32.SafeHandles.SafeFileHandle, ByVal metaData As String)

EmbeddedFile(String, String, String)

public EmbeddedFile(string fileName, string data, string metaData);
Public Sub New(ByVal fileName As String, ByVal data As String, ByVal metaData As String)

EmbeddedFile(String, Byte[], String)

public EmbeddedFile(string fileName, byte[] data, string metaData);
Public Sub New(ByVal fileName As String, ByVal data As Byte(), ByVal metaData As String)

Parameters

Parameter Description
fileName Specifies the file's name. The name can include a relative or absolute path.
handle Identifies a file from which the data to embed is read.
data Specifies the file's data. The data can be a string or binary data.
metaData Specifies additional metadata with properties of the document which is embedded. The data is added to the metadata of the containing document. The string must consist of one or more rdf:Description elements as specified by the XMP Specification (XMP: Extensible Metadata Platform, Adobe Systems Incorporated) or the RDF Model and Syntax Specification (http://www.w3.org/TR/rdf-syntax-grammar/). rdf is the XML namespace prefix for the "http://www.w3.org/1999/02/22-rdf-syntax-ns#" namespace. It can be null or an empty string, if there is no additional meta data to embed.