CVB.Net 14.0
OverlayDictionary Class Reference

Dictionary that provides access to the list of installed CVB overlay plugins. More...

Inherits IDictionary< string, OverlayPluginInfo >.

Public Member Functions

void Add (string key, OverlayPluginInfo value)
 Add a new entry. More...
 
bool ContainsKey (string key)
 Check if a specific key exists in the collection More...
 
bool Remove (string key)
 Remove a value with the specified key. More...
 
bool TryGetValue (string key, out OverlayPluginInfo value)
 Try to get a value from the collection. Will not raise and exception if the specified key does not exist. More...
 
bool Remove (KeyValuePair< string, OverlayPluginInfo > entry)
 Remove an entry from the dictionary More...
 
void CopyTo (KeyValuePair< string, OverlayPluginInfo >[] entries, int index)
 copy the contents of the collection into an array More...
 
bool Contains (KeyValuePair< string, OverlayPluginInfo > entry)
 Check if a specific entry is part of the collection More...
 
void Clear ()
 Will raise a NotSupportedException because this dictionary is readonly.
 
void Add (KeyValuePair< string, OverlayPluginInfo > entry)
 Will raise a NotSupportedException because this dictionary is read only. More...
 
IEnumerator< KeyValuePair< string, OverlayPluginInfo > > GetEnumerator ()
 Enumeration implementation More...
 

Properties

int Count Software\Common Vision Blox\Image Manager\AvailableOverlayPlugIns" [get]
 Number of available overlay plugins.
 
OverlayPluginInfo this[int index] [get]
 Access overlay plugin by means of a numerical index More...
 
OverlayPluginInfo this[string key] [get, set]
 Retrieve overlay plugin information by means of a string key containing the plugin's friendly name More...
 
ICollection< string > Keys [get]
 Get the collection of keys in the dictionary
 
ICollection< OverlayPluginInfoValues [get]
 Get the collection of values in the dictionary
 
bool IsReadOnly [get]
 This collection is read-only
 

Detailed Description

Dictionary that provides access to the list of installed CVB overlay plugins.

Not to be used directly; access through the property Display.InstalledOverlays instead!

Member Function Documentation

◆ Add() [1/2]

void Add ( KeyValuePair< string, OverlayPluginInfo entry)

Will raise a NotSupportedException because this dictionary is read only.

Parameters
entryignored

◆ Add() [2/2]

void Add ( string  key,
OverlayPluginInfo  value 
)

Add a new entry.

As this dictionary is read-only, Add will always raise a NotSupportedException.

Parameters
keyignored
valueignored

◆ Contains()

bool Contains ( KeyValuePair< string, OverlayPluginInfo entry)

Check if a specific entry is part of the collection

Parameters
entryentry to be checked for
Returns
true if the entry exists inside the collection, false otherwise

◆ ContainsKey()

bool ContainsKey ( string  key)

Check if a specific key exists in the collection

Parameters
keykey to be checked
Returns
true if the key exists, false otherwise

◆ CopyTo()

void CopyTo ( KeyValuePair< string, OverlayPluginInfo >[]  entries,
int  index 
)

copy the contents of the collection into an array

Parameters
entriesentries array into which to copy
indexindex at which to start copying
Exceptions
ArgumentNullExceptionIf entries is null
ArgumentOutOfRangeExceptionIf index is less than 0
ArgumentExceptionIf the number of elements in this collection is greater than the available space from index to the end of the destination entries

◆ GetEnumerator()

IEnumerator< KeyValuePair< string, OverlayPluginInfo > > GetEnumerator ( )

Enumeration implementation

Returns
IEnumerator<T> for this collection.

◆ Remove() [1/2]

bool Remove ( KeyValuePair< string, OverlayPluginInfo entry)

Remove an entry from the dictionary

As this dictionary is read-only, Remove will always raise a NotSupportedException.

Parameters
entryignored
Returns
Nothing (will always raise a NotSupportedException).
Exceptions
NotSupportedExceptionWill always be raised as this dictionary is read only.

◆ Remove() [2/2]

bool Remove ( string  key)

Remove a value with the specified key.

As this dictionary is read-only, Remove will always raise a NotSupportedException.

Parameters
keyignored
Returns
nothing

◆ TryGetValue()

bool TryGetValue ( string  key,
out OverlayPluginInfo  value 
)

Try to get a value from the collection. Will not raise and exception if the specified key does not exist.

Parameters
keykey of the entry to be retrieved
valueretrieved value
Returns
true if there was a value for the specified key, false otherwise

Property Documentation

◆ this[int index]

OverlayPluginInfo this[int index]
get

Access overlay plugin by means of a numerical index

Parameters
indexindex of the item to get
Returns
Overlay Plugin Information
Exceptions
ArgumentOutOfRangeExceptionIf index is out of range.

◆ this[string key]

OverlayPluginInfo this[string key]
getset

Retrieve overlay plugin information by means of a string key containing the plugin's friendly name

Parameters
key
Returns
Exceptions
NotSupportedExceptionwhen trying to invoke the set accessor of the indexer (this collection is strictly read-only).