MetadataDefinition
public sealed class MetadataDefinitionDefines a named custom metadata field, its value type, visibility, display order, and available list values.
Fields
Section titled “Fields”
FIELD_COMMENTS
Section titled “FIELD_COMMENTS”public const string FIELD_COMMENTS = "Comments"Returns
System.String
FIELD_HIDE
Section titled “FIELD_HIDE”public const string FIELD_HIDE = "Hide"Returns
System.String
FIELD_MAX_BACKUPS
Section titled “FIELD_MAX_BACKUPS”public const string FIELD_MAX_BACKUPS = "Max Backups"Returns
System.String
Constructors
Section titled “Constructors”
MetadataDefinition()
Section titled “MetadataDefinition()”public MetadataDefinition()
MetadataDefinition(string)
Section titled “MetadataDefinition(string)”public MetadataDefinition(string name)Creates a metadata field definition with the supplied display name and default value type.
Parameters
| Name | Type |
|---|---|
name |
System.String |
Methods
Section titled “Methods”
ToString()
Section titled “ToString()”public override string ToString()Returns
System.String
Properties
Section titled “Properties”
[PrimaryKey][AutoIncrement]public int Id { get; set; }Returns
System.Int32
[Indexed][Collation("NOCASE")]public string Name { get; set; }Returns
System.String
public MetadataDefinition.DataType Type { get; set; }Returns
AssetInventory.MetadataDefinition.DataType
ValueList
Section titled “ValueList”public string ValueList { get; set; }Returns
System.String
RestrictAssetGroup
Section titled “RestrictAssetGroup”public bool RestrictAssetGroup { get; set; }Returns
System.Boolean
ApplicableGroup
Section titled “ApplicableGroup”public AI.AssetGroup ApplicableGroup { get; set; }Returns
AssetInventory.AI.AssetGroup
RestrictAssetSource
Section titled “RestrictAssetSource”public bool RestrictAssetSource { get; set; }Returns
System.Boolean
ApplicableSource
Section titled “ApplicableSource”public Asset.Source ApplicableSource { get; set; }Returns
AssetInventory.Asset.Source
IsPredefined
Section titled “IsPredefined”[Ignore]public bool IsPredefined { get; }Returns
System.Boolean