Table of Contents

Method TryGet

Namespace
OBSStudioClient.Model
Assembly
OBSClient.dll

TryGet(string, out ObsSceneItem)

Gets the scene item whose source has a name, if there is exactly one.

public bool TryGet(string sourceName, out ObsSceneItem item)

Parameters

sourceName string

The name of the source.

item ObsSceneItem

The scene item.

Returns

bool

Whether there is one scene item for the name.

Exceptions

ObsAmbiguousNameException

More than one scene item shows it.