Table of Contents

Method SetPersistentData

Namespace
OBSStudioClient
Assembly
OBSClient.dll

SetPersistentData(Realm, string, object, CancellationToken)

Sets the value of a "slot" from the selected persistent data realm.

public Task SetPersistentData(Realm realm, string slotName, object slotValue, CancellationToken cancellationToken = default)

Parameters

realm Realm

The data realm to select. OBS_WEBSOCKET_DATA_REALM_GLOBAL or OBS_WEBSOCKET_DATA_REALM_PROFILE.

slotName string

The name of the slot to retrieve data from.

slotValue object

The value to apply to the slot.

cancellationToken CancellationToken

A token that ends the wait for the response, which makes the method throw an OperationCanceledException. A request that was already sent is not undone: OBS Studio may still carry it out.

Returns

Task