Click or drag to resize

UnsavedRevisionSetAttachment Method (String, String, Uri)

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,
	Uri contentUrl
)

Parameters

name
Type: SystemString
The name of the Attachment to set.
contentType
Type: SystemString
The content-type of the Attachment.
contentUrl
Type: SystemUri
The URL of 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