[This is preliminary documentation and is subject to change.]
Gets a declarative chunk with the specified label. If a declarative chunk cannot be found,
this method returns null.
Namespace: ClarionAssembly: CLARIONLibrary (in CLARIONLibrary.dll) Version: 6.1.0.7 (6.1.0.7)
Syntax
C# |
---|
public static DeclarativeChunk GetDeclarativeChunk( IComparable label ) |
Parameters
- label
- Type: System..::..IComparable
The label of a declarative chunk to get
Return Value
A declarative chunk with the specified label or null if a declarative chunk cannot be found
Remarks
![]() |
---|
This method CANNOT guarantee correct retrieval unless ALL declarative chunks are initialized using a unique label. Since a label is optional for a declarative chunk and since multiple declarative chunks can have the same label, calling this method will only returns the FIRST instance of a declarative chunk with the specified label (if one is found). Keep this in mind if you plan to use this method to retrieve declarative chunks from the world. |
Exceptions
Exception | Condition |
---|---|
System..::..InvalidOperationException | If the singleton world instance has not been initialized |