Attachment

Attachment

A Couchbase Lite Document Attachment.

Syntax


@interface CBLAttachment
class CBLAttachment
public class Attachment
public class Attachment
public class Attachment

Summary


Properties
byte[]
content { get; }
Gets the Attachment content.
String
contentType { get; }
Gets the content-type.
Document
document { get; }
Gets the owning Document.
long
length { get; }
Gets the length in bytes of the content.
Map<String, Object>
metadata { get; }
Gets the metadata about the Attachment.
String
name { get; }
Gets the name of the Attachment.
Revision
revision { get; }
Gets the owning Revision.

Properties


byte[] content { get; }
Gets the Attachment content.

Syntax

@property (readonly) NSData * content
var content: NSData! { get }
public InputStream getContent()
public InputStream getContent()
public IEnumerable<byte> Content { get; }
String contentType { get; }
Gets the content-type.

Syntax

@property (readonly) NSString * contentType
var contentType: String!
public String getContentType()
public String getContentType()
public String ContentType { get; }
Document document { get; }
Gets the owning Document.

Syntax

@property (readonly) CBLDocument * document
var document: CBLDocument! { get }
public Document getDocument()
public Document getDocument()
public Document Document { get; }
long length { get; }
Gets the length in bytes of the content.

Syntax

@property (readonly) UInt64 length
var length: UInt64 { get }
public long getLength()
public long getLength()
public Int64 Length { get; }
Map<String, Object> metadata { get; }
Gets the metadata about the Attachment.

Syntax

@property (readonly) NSDictionary * metadata
var metadata: [NSObject : AnyObject]! { get }
public Map<String, Object>>getMetadata()
public Map<String, Object>>getMetadata()
public Dictionary<String, Object> Metadata { get; }
String name { get; }
Gets the name of the Attachment.

Syntax

@property (readonly, copy) NSString * name
var name: String!
public String getName()
public String getName()
public String Name { get; }
Revision revision { get; }
Gets the owning Revision.

Syntax

@property (readonly, retain) CBLRevision * revision
var revision: CBLRevision!
public Revision getRevision()
public Revision getRevision()
public Revision Revision { get; }