Diffusion .NET Client Library
6.1.5
|
Interface for a content metadata node. 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... | |
Interface for a content metadata node.
This describes the layout of topic content and can be made up of records and/or fields.
Content can be built using an IMContentBuilder or using a IMetadataFactory convenience method. For example:
var factory = Diffusion.Metadata;
var content = factory.Content( "Content", factory.Record( "REC", factory.String( "A" ), factory.String( "B" ) ) );
The above example would create a content definition with a single record that has two string fields named 'A' and 'B'.