Click or drag to resize

UnsavedRevisionSetAttachment Method (String, String, IEnumerableByte)

Sets the attachment with the given name.

Namespace:  Couchbase.Lite
Assembly:  Couchbase.Lite (in Couchbase.Lite.dll) Version: 1.4.1-b107
Syntax
C#
public void SetAttachment(
	string name,
	string contentType,
	IEnumerable<byte> content
)

Parameters

name
Type: SystemString
The name of the Attachment to set.
contentType
Type: SystemString
The content-type of the Attachment.
content
Type: System.Collections.GenericIEnumerableByte
The Attachment content.
Remarks
Sets the Attachment with the given name. The Attachment data will be written to the Database when the Revision is saved.
See Also