Show / Hide Table of Contents

Class Metas

Metas class contains list of metadata. Contains all metadata that is relative to a single object (attached data or sample)

Inheritance
System.Object
Metas
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: CoreLibrary
Assembly: CoreLibrary.dll
Syntax
public class Metas

Constructors

Metas()

Default constructor of Metas.

Declaration
public Metas()

Metas(List<Meta>)

Constructor for JSON serialization and deserialization. Note that the parameter names must match the attribute names (non case sensitive)

Declaration
[JsonConstructor]
public Metas(List<Meta> metalist)
Parameters
Type Name Description
System.Collections.Generic.List<Meta> metalist

Properties

MetaList

Declaration
public List<Meta> MetaList { get; set; }
Property Value
Type Description
System.Collections.Generic.List<Meta>

Methods

AddData(Meta)

Adds a metadata object to the metadata list.

Declaration
public void AddData(Meta meta)
Parameters
Type Name Description
Meta meta

Metadata object.

AddData(String, String)

Adds new metadata of specified name and value.

Declaration
public void AddData(string name, string info)
Parameters
Type Name Description
System.String name

Name of the metadata.

System.String info

Content of the metadata.

Clone(Metas)

Returns a clone object of the Metas given

Declaration
public static Metas Clone(Metas toBeCloned)
Parameters
Type Name Description
Metas toBeCloned

Metas object to be cloned.

Returns
Type Description
Metas

A clonse object of the metas-object

RemoveMeta(Meta)

Removes metadata object from metadata list

Declaration
public bool RemoveMeta(Meta meta)
Parameters
Type Name Description
Meta meta

Metadata object to be removed

Returns
Type Description
System.Boolean

Was the metadata found and deleted.

RemoveMetaByName(String)

Removes the first matching metadata of specified name

Declaration
public bool RemoveMetaByName(string name)
Parameters
Type Name Description
System.String name

Name of the metadata.

Returns
Type Description
System.Boolean

Was the metadata found and deleted.

SetData(String, String)

Sets metadata of set name to set value or creates metadata of set name with set value if it doesn't exist.

Declaration
public bool SetData(string name, string info)
Parameters
Type Name Description
System.String name

Name of the metadata.

System.String info

Content of the metadata.

Returns
Type Description
System.Boolean

if the metadata existed.

In This Article
Back to top Generated by DocFX