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
namestringThe name.
valueTThe 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
uuidGuidThe UUID.
valueTThe object.
Returns
- bool
Whether there is an object with the UUID.