Diffusion .NET Client Library
6.1.5
|
A record metadata definition. More...
Additional Inherited Members | |
Public Member Functions inherited from PushTechnology.ClientInterface.Client.Content.Metadata.IMGroup | |
IMRecord | GetRecord (string name) |
Gets a child record by name. More... | |
IMField | GetField (string name) |
Get a child field by name. More... | |
IMNode | GetChild (int index) |
Gets the child at a given index. More... | |
Properties inherited from PushTechnology.ClientInterface.Client.Content.Metadata.IMGroup | |
List< IMNode > | ChildNodes [get] |
Returns a list of the children of the record. More... | |
int | ChildCount [get] |
Returns the number of child nodes. More... | |
Properties inherited from PushTechnology.ClientInterface.Client.Content.Metadata.IMNode | |
string | Name [get] |
Returns the node name. More... | |
MetadataNodeType | NodeType [get] |
Returns the node type. More... | |
MNodeDataType | DataType [get] |
Returns the data type of the node implementation. More... | |
string | FullName [get] |
Returns the full name of the node defining its hierarchy. More... | |
Multiplicity | Multiplicity [get] |
Returns the node's multiplicity within its parent. More... | |
IMGroup | Parent [get, set] |
Returns the parent record (or message). More... | |
A record metadata definition.
A record is a node which may have children which may be IMRecord records or IMField fields. Some data type implementations (such as MNodeDataType.RECORD do not support nested records.
The easiest way to define a record definition is using a MetadataFactory convenience method. For example:
var factory = Diffusion.Metadata; var record = factory.Record( "REC", factory.String( "A" ), factory.String( "B" ) );