Method GetPersistentData
- Namespace
- OBSStudioClient
- Assembly
- OBSClient.dll
GetPersistentData(Realm, string, CancellationToken)
Gets the value of a "slot" from the selected persistent data realm.
public Task<object?> GetPersistentData(Realm realm, string slotName, 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.
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.