Method SetCurrentProfile
- Namespace
- OBSStudioClient
- Assembly
- OBSClient.dll
SetCurrentProfile(string, CancellationToken)
Switches to a profile.
public Task SetCurrentProfile(string profileName, CancellationToken cancellationToken = default)
Parameters
profileNamestringName of the profile to switch to.
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.