Diffusion .NET Client Library
6.1.5
|
Abstract string field metadata builder. More...
Public Member Functions | |
TB | SetDefaultValue (string value) |
Sets a default value that required occurrences of the field are to be initialised to. More... | |
TB | SetAllowsEmpty (bool allowsEmpty) |
Sets the 'allowsEmpty' option for the field. More... | |
Public Member Functions inherited from PushTechnology.ClientInterface.Client.Content.Metadata.IMNodeBuilder< out T, out TB > | |
TB | SetName (string name) |
Set the node name. More... | |
T | Build () |
Builds the metadata node. More... | |
Public Member Functions inherited from PushTechnology.ClientInterface.Client.Content.Metadata.Record.IMNodeBuilder | |
string | GetName () |
Return the name. More... | |
Additional Inherited Members | |
Properties inherited from PushTechnology.ClientInterface.Client.Content.Metadata.Record.IMStringAbstractStringBuilder | |
bool | AllowsEmpty [get, set] |
Returns the 'allows empty' setting. More... | |
string | DefaultValue [get] |
Get the default value. More... | |
Abstract string field metadata builder.
The is the supertype of all type-specific field metadata builders.
T | |
TB |
TB PushTechnology.ClientInterface.Client.Content.Metadata.IMStringAbstractBuilder< out T, out TB >.SetAllowsEmpty | ( | bool | allowsEmpty | ) |
Sets the 'allowsEmpty' option for the field.
By default MFieldType.STRING type fields allow empty input but other subtypes do not. This may be used to change this default behaviour.
When a field allows empty input and an empty (zero length string) is parsed then its internal representation will be a zero-length string and not an object of the default type for the field.
allowsEmpty | true to allow the field to parse empty input or false if parsing of the field should fail upon encountering empty input. |
TB PushTechnology.ClientInterface.Client.Content.Metadata.IMStringAbstractBuilder< out T, out TB >.SetDefaultValue | ( | string | value | ) |
Sets a default value that required occurrences of the field are to be initialised to.
value | An initial value. |