Class ObsAmbiguousNameException
- Namespace
- OBSStudioClient.Exceptions
- Assembly
- OBSClient.dll
Represents an exception that is thrown when a name matches more than one object, and so does not say which one is meant.
[Serializable]
public class ObsAmbiguousNameException : ObsClientException, ISerializable
- Inheritance
-
ObsAmbiguousNameException
- Implements
- Inherited Members
Remarks
This happens when the same source is in a scene more than once (each copy is a scene item with its own id), and when ignoring the case of names leaves more than one match. For scene items use the method that returns all the matches, or the id; for the other objects, and for the filters of a source (which have no id), use the name exactly as it is written: an exact match always wins.
Constructors
- ObsAmbiguousNameException(string, string, IReadOnlyList<string>, string?)
Initializes a new instance of the ObsAmbiguousNameException class.
Properties
- Candidates
Gets a description of each of the matches.
- Kind
Gets what was looked for: "scene", "input", "scene item" or "filter".
- RequestedName
Gets the name that was asked for.