MaterialRefsAdd Method (Guid, MaterialRef) |
Add or replace an element with the provided key and value to this dictionary.
Namespace:
Rhino.DocObjects
Assembly:
RhinoCommon (in RhinoCommon.dll)
Since: 5.10
Syntaxpublic void Add(
Guid key,
MaterialRef value
)
Public Sub Add (
key As Guid,
value As MaterialRef
)
Parameters
- key
- Type: SystemGuid
The plug-in associated with this MaterialRef
- value
- Type: Rhino.DocObjectsMaterialRef
MaterialRef to add to this dictionary
Implements
IDictionaryTKey, TValueAdd(TKey, TValue)
Exceptions| Exception | Condition |
|---|
| ArgumentNullException |
value is null.
|
| ArgumentException |
key is empty.
|
See Also