Table of Contents

Method TryGet

Namespace
OBSStudioClient.Model
Assembly
OBSClient.dll

TryGet(string, out T)

Gets the object with a name, if there is one.

public bool TryGet(string name, out T value)

Parameters

name string

The name.

value T

The object.

Returns

bool

Whether there is an object with the name.

Exceptions

ObsAmbiguousNameException

More than one object matches (only possible when case is ignored).

TryGet(Guid, out T)

Gets the object with a UUID, if there is one.

public bool TryGet(Guid uuid, out T value)

Parameters

uuid Guid

The UUID.

value T

The object.

Returns

bool

Whether there is an object with the UUID.