Skip to main content
Version: v1

SharedObjectSequence Class

The SharedObjectSequence holds a sequence of serializable objects. Each object will be stored at a position within the sequence. See the sequence documentation for details on working with sequences.

This API is deprecated and will be removed in a future release.

SharedObjectSequence is not recommended for use and will be removed in an upcoming release. For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)

Signature​

export declare class SharedObjectSequence<T> extends SharedSequence<T>

Extends: SharedSequence

Type Parameters​

ParameterDescription
T

Constructors​

ConstructorAlertsDescription
(constructor)(document, id, attributes)DeprecatedConstructs a new instance of the SharedObjectSequence class

Static Methods​

MethodAlertsReturn TypeDescription
create(runtime, id)DeprecatedSharedObjectSequence<T>Create a new shared object sequence
getFactory()DeprecatedSharedObjectSequenceFactoryGet a factory for SharedObjectSequence to register with the data store.

Properties​

PropertyTypeDescription
idstring

Methods​

MethodAlertsReturn TypeDescription
getRange(start, end)DeprecatedSerializable<T>[]

Constructor Details​

(constructor)​

Constructs a new instance of the SharedObjectSequence class

This API is deprecated and will be removed in a future release.

SharedObjectSequence is not recommended for use and will be removed in an upcoming release. For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)

Signature​

constructor(document: IFluidDataStoreRuntime, id: string, attributes: IChannelAttributes);

Parameters​

ParameterTypeDescription
documentIFluidDataStoreRuntime
idstring
attributesIChannelAttributes

Property Details​

id​

Signature​

id: string;

Type: string

Method Details​

create​

Create a new shared object sequence

This API is deprecated and will be removed in a future release.

SharedObjectSequence is not recommended for use and will be removed in an upcoming release. For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)

Signature​

static create<T>(runtime: IFluidDataStoreRuntime, id?: string): SharedObjectSequence<T>;
Type Parameters​
ParameterDescription
T

Parameters​

ParameterModifiersTypeDescription
runtimeIFluidDataStoreRuntimedata store runtime the new shared object sequence belongs to
idoptionalstringoptional name of the shared object sequence

Returns​

newly create shared object sequence (but not attached yet)

Return type: SharedObjectSequence<T>

getFactory​

Get a factory for SharedObjectSequence to register with the data store.

This API is deprecated and will be removed in a future release.

SharedObjectSequence is not recommended for use and will be removed in an upcoming release. For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)

Signature​

static getFactory(): SharedObjectSequenceFactory;

Returns​

a factory that creates and load SharedObjectSequence

Return type: SharedObjectSequenceFactory

getRange​

This API is deprecated and will be removed in a future release.

SharedObjectSequence is not recommended for use and will be removed in an upcoming release. For more info, please see [Github issue 8526](https://github.com/microsoft/FluidFramework/issues/8526)

Signature​

getRange(start: number, end?: number): Serializable<T>[];

Parameters​

ParameterModifiersTypeDescription
startnumber
endoptionalnumber

Returns​

Return type: Serializable<T>[]