Otter SDK Reference
Version:

GetRaftItem(RaftItemType type, string name) Method

Returns the specified item in a raft.

Syntax

public virtual RaftItem GetRaftItem(RaftItemType type, string name)

Parameters

type
Type: RaftItemType

The type of item to return.

name
Type: string

The name of the item.

Returns

The item of the specified type and name, or null if there is no matching item in the raft.

Remarks

The default implementation of this method calls GetRaftItems and filters the results. Implementers may override this method as a performance optimization.