| FieldDefinitions Class |
Namespace: Sdl.LanguagePlatform.TranslationMemory
The FieldDefinitions type exposes the following members.
| Name | Description | |
|---|---|---|
| FieldDefinitions |
Initializes a new instance with an empty field declaration list.
| |
| FieldDefinitions(ICollectionField) |
Initializes a new instance, copying the field declarations from the provided collection (deep copy).
| |
| FieldDefinitions(FieldDefinitions) |
Initializes a new instance, copying the field declarations from the provided collection (deep copy).
|
| Name | Description | |
|---|---|---|
| Count |
Gets the number of fields in this collection.
| |
| Fields |
Gets the underlying list of field declarations.
| |
| ItemGuid |
Gets the field with the specified GUID, or null if there is no field with that
GUID.
| |
| ItemString |
Gets the field with the specified name, or null if there is no field with that
name. Field names are case-insensitive.
|
| Name | Description | |
|---|---|---|
| Add(Field) |
Adds a new field to the list. Throws an error if the field already exists or if no additions are allowed.
| |
| Add(String, FieldValueType) |
Creates a new field declaration with the specified name and type and adds it to the list.
| |
| Clear |
Remove all the fields currently associated with this definition.
| |
| Contains |
Determines whether a named field exists in the collection. Field names are
case-insensitive.
| |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
| Exists(String) |
Retrieves a value indicating whether a field with the specified name exists.
| |
| Exists(Field) |
Retrieves a value indicating whether the specified field exists in the collection. Only the name, not
the data type, is checked.
| |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
| GetEnumerator |
Returns an enumerator which can be used to iterate through the field list.
| |
| GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| Lookup(Guid) |
Retrieves a field by its GUID.
| |
| Lookup(String) |
Retrieves the field declaration with the specified name. Field names are case-insensitive.
| |
| LookupIField(Guid) |
Returns the field with the specified GUID, or null if there is no field with that
GUID.
| |
| LookupIField(String) |
Returns the field with the specified name, or null if there is no field with that
name.
| |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| Remove(String) |
Removes the field with the provided name, if one exists.
| |
| Remove(Field) |
Removes the field with the same name as the provided field, if one exists.
| |
| ToList |
Generates and returns a deep copy of the field declarations.
| |
| ToString | Returns a string that represents the current object. (Inherited from Object.) |