Autodesk Vault ProfessionalVault API

PropertyDefinitionDictionary Class

Autodesk.DataManagement.Client.Framework.VaultAutodesk.DataManagement.Client.Framework.Vault.Currency.Properties

This class is a collection (dictionary) of PropertyDefinition objects with a dual key. Each item in the collection has a "long" ID key and a "string" key. The long key is typically a database id, and can not be used to persist from session to session because migrations can cause the value to change. The "string" key is a system name that is unique across all PropertyDefinitions and can be persisted from session to session.

Syntax

public sealed class PropertyDefinitionDictionary 
Public NotInheritable Class PropertyDefinitionDictionary 

Constructors

NameDescription
PropertyDefinitionDictionaryCreates an instance of a PropertyDefinitionDictionary

Properties

NameDescription
CountGets the number of PropertyDefinitions stored in the dictionary.
ItemGets PropertyDefinition from the dictionary, or inserts a PropertyDefinition into the dictionary, by it's SystemName
Item(String)Gets PropertyDefinition from the dictionary, or inserts a PropertyDefinition into the dictionary, by it's SystemName
Item(Int64)Gets PropertyDefinition from the dictionary, or inserts a PropertyDefinition into the dictionary, by it's PropertyDefinition.Id
KeysGets all of the SystemName keys in the dictionary
ValuesGets all of the PropertyDefinition values stored in the dictionary

Methods

NameDescription
AddAdds a PropertyDefinition to the dictionary
Add(String,PropertyDefinition)Adds a PropertyDefinition to the dictionary
Add(IEnumerable<PropertyDefinition>)Adds a collection of PropertyDefinition's to the dictionary
Add(KeyValuePair<String,PropertyDefinition>)Adds a PropertyDefinition to the dictionary by a Key-Value Pair
Add(PropertyDefinition)Adds a PropertyDefinition to the dictionary
ClearRemoves all of the contents of the dictionary
ContainsTests if a PropertyDefinition is in the dictionary by a Key-Value Pair
ContainsKeyTests if a PropertyDefinition with the specified SystemName exists in the dictionary.
ContainsKey(String)Tests if a PropertyDefinition with the specified SystemName exists in the dictionary.
ContainsKey(Int64)Tests if a PropertyDefinition with the specified PropertyDefinition.Id exists in the dictionary.
RemoveRemoves a PropertyDefinition from the dictionary by it's SystemName
Remove(String)Removes a PropertyDefinition from the dictionary by it's SystemName
Remove(Int64)Removes a PropertyDefinition from the dictionary by it's PropertyDefinition.Id
Remove(KeyValuePair<String,PropertyDefinition>)Removed a PropertyDefinition from the dictionary by Key-Value Pair
TryGetValueTries to retrieve a PropertyDefinition from the dictionary by it's SystemName

Returned By

Where you get a PropertyDefinitionDictionary — members that return one.

Inheritance Hierarchy

  • System.Object
  • Autodesk.DataManagement.Client.Framework.Vault.Currency.Properties.PropertyDefinitionDictionary

See Also