XRoadAttachment
Namespace: XRoadLib.Serialization
Binary content of X-Road messages.
Constructors
Constructor | Description |
new(contentStream)
Signature: contentStream:Stream -> unit
|
Initializes new attachment based on existing stream. |
new(contentID, fullPath)
Signature: (contentID:string * fullPath:string) -> unit
|
Initializes new attachment from temporary file, which is specified by fullPath. |
Instance members
Instance member | Description |
ContentID
Signature: string
|
Attachments unique identificator inside the request which references the multipart content. |
ContentStream()
Signature: unit -> unit
|
Underlying stream which contains the content. |
Dispose()
Signature: unit -> unit
Modifiers: abstract |
Clean up unmanaged resources. |
HasContent
Signature: bool
|
Does the attachment have any content. |
IsMultipartContent()
Signature: unit -> unit
|
Indicates whether content is serialized as multipart attachement or not. |
WriteAsBase64(writer)
Signature: writer:XmlWriter -> unit
|
Writes attachments contents to the specificed XML writer object using base64 encoding. |
WriteAsBase64(writer)
Signature: writer:TextWriter -> unit
|
Writes attachments contents to the specificed output stream object using base64 encoding. |