Click or drag to resize
FieldDefinitions Class
Encapsulates a set of field declarations. Fields are identified through their name or through their GUID. Note that field names are case-insensitive.
Inheritance Hierarchy
SystemObject
  Sdl.LanguagePlatform.TranslationMemoryFieldDefinitions

Namespace: Sdl.LanguagePlatform.TranslationMemory
Assembly: Sdl.LanguagePlatform.TranslationMemory (in Sdl.LanguagePlatform.TranslationMemory.dll) Version: 1.6.0.0 (1.7.3662.0)
Syntax
public class FieldDefinitions : IEnumerable<Field>, 
	IEnumerable, IFieldDefinitions

The FieldDefinitions type exposes the following members.

Constructors
  NameDescription
Public methodFieldDefinitions
Initializes a new instance with an empty field declaration list.
Public methodFieldDefinitions(ICollectionField)
Initializes a new instance, copying the field declarations from the provided collection (deep copy).
Public methodFieldDefinitions(FieldDefinitions)
Initializes a new instance, copying the field declarations from the provided collection (deep copy).
Top
Properties
  NameDescription
Public propertyCount
Gets the number of fields in this collection.
Public propertyFields
Gets the underlying list of field declarations.
Public propertyItemGuid
Gets the field with the specified GUID, or null if there is no field with that GUID.
Public propertyItemString
Gets the field with the specified name, or null if there is no field with that name. Field names are case-insensitive.
Top
Methods
  NameDescription
Public methodAdd(Field)
Adds a new field to the list. Throws an error if the field already exists or if no additions are allowed.
Public methodAdd(String, FieldValueType)
Creates a new field declaration with the specified name and type and adds it to the list.
Public methodClear
Remove all the fields currently associated with this definition.
Public methodContains
Determines whether a named field exists in the collection. Field names are case-insensitive.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodExists(String)
Retrieves a value indicating whether a field with the specified name exists.
Public methodExists(Field)
Retrieves a value indicating whether the specified field exists in the collection. Only the name, not the data type, is checked.
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetEnumerator
Returns an enumerator which can be used to iterate through the field list.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodLookup(Guid)
Retrieves a field by its GUID.
Public methodLookup(String)
Retrieves the field declaration with the specified name. Field names are case-insensitive.
Public methodLookupIField(Guid)
Returns the field with the specified GUID, or null if there is no field with that GUID.
Public methodLookupIField(String)
Returns the field with the specified name, or null if there is no field with that name.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodRemove(String)
Removes the field with the provided name, if one exists.
Public methodRemove(Field)
Removes the field with the same name as the provided field, if one exists.
Public methodToList
Generates and returns a deep copy of the field declarations.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also
Community
Edit

Be the first to Edit the community content of this topic.
Comments