| FieldDefinition Constructor (String, FieldValueType, String) |
Creates a new picklist field definition with the specified name and value type.
Namespace: Sdl.LanguagePlatform.TranslationMemoryApiAssembly: Sdl.LanguagePlatform.TranslationMemoryApi (in Sdl.LanguagePlatform.TranslationMemoryApi.dll) Version: 1.6.0.0 (1.14.3880.0)
Syntaxpublic FieldDefinition(
string name,
FieldValueType valueType,
string[] picklistItems
)
Public Sub New (
name As String,
valueType As FieldValueType,
picklistItems As String()
)
public:
FieldDefinition(
String^ name,
FieldValueType valueType,
array<String^>^ picklistItems
)
new :
name : string *
valueType : FieldValueType *
picklistItems : string[] -> FieldDefinitionParameters
- name
- Type: SystemString
The name of the field. - valueType
- Type: Sdl.LanguagePlatform.TranslationMemoryFieldValueType
The type of value this field can hold. This has to be SinglePicklist
or MultiplePicklist. - picklistItems
- Type: SystemString
An array of picklist values.
Exceptions
RemarksIn order to add the new field to a translation memory or fields template, add it to the corresponding fields collection (
FieldDefinitions
or
FieldDefinitions) and save the translation memory or fields template to persist the change (
Save or
Save)
See Also
Comments