Table of Contents

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

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.

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<object>

Value associated with the slot. null if not set.