GetRaftItem(RaftItemType type, string name, string version) Method

Returns the specified item in a raft.

Syntax

public virtual RaftItem2 GetRaftItem(RaftItemType type, string name, string version)

Parameters

type
Type: RaftItemType

The type of item to return.

name
Type: string

The name of the item.

version
Type: string

The version of the item to open. Use null (Nothing in Visual Basic) to open the latest version.

Returns

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

Exceptions

System.NotSupportedException

version is not null (Nothing in Visual Basic) and SupportsVersioning returns false.

Remarks

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