WriteRaftItemAsync(RaftItemType type, string name, byte[] content, System.DateTimeOffset? timestamp, string userName) Method

Creates or updates the raft item with the specified type, name, and content. If the item already exists, it is overwritten.

Syntax

public virtual System.Threading.Tasks.Task WriteRaftItemAsync(RaftItemType type, string name, byte[] content, System.DateTimeOffset? timestamp, string userName)

Parameters

type
Type: RaftItemType

The type.

name
Type: string

The full name of the item.

content
Type: byte[]

The content of the item. May be null (Nothing in Visual Basic) to write an empty item.

timestamp
Type: System.DateTimeOffset?

If specified, this value will be used as the item's timestamp if supported by the raft.

userName
Type: string

If specified, this value will be used as the item's updated user if supported by the raft.