RNIFAttachment Type

This describes the file being attached.

Remarks

Information about the file's location that is being attached to the message is contained here.

Fields

Data
String

Data contains the raw data of the current attachment. If Data is set, the value in FileName will be used to specify the name of the attachment when generating messages to be sent. When receiving, polling This field will cause the attachment to be parsed out of the transmitted MIME entity to memory rather than being parsed to a file.

DataB
Byte[]

Data contains the raw data of the current attachment. If Data is set, the value in FileName will be used to specify the name of the attachment when generating messages to be sent. When receiving, polling This field will cause the attachment to be parsed out of the transmitted MIME entity to memory rather than being parsed to a file.

Description
String

Description contains descriptions for this attachment. These descriptions are human-readable strings and may set to any arbitrary value. These descriptions should play no role in how the message is processed or interpreted.

Filename
String

Filename is the name of the file containing the decoded data of the current attachment. When sending messages, this value tells the component where to find the file and is used in accordance with MIME encoding rules to indicate the filename to be used by the receiving RNIF entity when parsing the attachments.

When receiving, polling This field will cause the attachment to be parsed out of the transmitted MIME entity to the filename indicated by the MIME encoding rules. When the property returns, the file will be written to the path indicated.

Id
String

Id is a unique content-identifier used within the RosettaNet message to internally reference the attachments. Because these identifiers are used to reference the attachments, each attachment must have a unique identifier, but they only need to be unique within the scope of the current message. These values may take the form of a URI.

InputStream
System.IO.Stream

A stream which contains the decoded data of the current attachment.

MIMEType
String

MimeType is a value indicating how the RNIFAttachment should be interpreted. Valid MIME types include, but are not limited to, the following:

  • "plain/html"
  • "plain/text"
  • "image/jpg"
  • "image/gif"
  • "image/bmp"
  • "application/stream"

OutputStream
System.IO.Stream

The component decodes the actual part of Message when OutputStream's value is first set, and writes the decoded value to the stream.

Constructors

public RNIFAttachment();
Public RNIFAttachment()
public RNIFAttachment(string filename);
Public RNIFAttachment(ByVal Filename As String)
public RNIFAttachment(string filename, string id);
Public RNIFAttachment(ByVal Filename As String, ByVal Id As String)
public RNIFAttachment(string filename, string id, string description);
Public RNIFAttachment(ByVal Filename As String, ByVal Id As String, ByVal Description As String)
public RNIFAttachment(string filename, string id, string description, string MIMEType);
Public RNIFAttachment(ByVal Filename As String, ByVal Id As String, ByVal Description As String, ByVal MIMEType As String)

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks EDI 2020 .NET Edition - Version 20.0 [Build 8203]