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
realmRealmThe data realm to select.
OBS_WEBSOCKET_DATA_REALM_GLOBALorOBS_WEBSOCKET_DATA_REALM_PROFILE.slotNamestringThe name of the slot to retrieve data from.
slotValueobjectThe value to apply to the slot.
cancellationTokenCancellationTokenA 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.