|
LuciadCPillar C# 2026.1.02
|
Builder that allows DataProperty instances to be created.
More...
Public Member Functions | |
| Builder (Luciad.Datamodels.DataProperty.Builder other) | |
| Copy constructor. | |
| Luciad.Datamodels.DataProperty.Builder | AddAnnotation (Luciad.Datamodels.DataAnnotation annotation) |
| Adds an annotation to the data property under construction. | |
| Luciad.Datamodels.DataProperty | Build () |
| Build the data type, including the value type that was set on this builder. | |
| Luciad.Datamodels.DataProperty.Builder | CollectionKind (Luciad.Datamodels.DataCollectionKind type) |
| Sets the collection type of the data property under construction. | |
| void | Dispose () |
| Luciad.Datamodels.DataProperty.Builder | Name (string name) |
| Sets the name of the data property. | |
| Luciad.Datamodels.DataProperty.Builder | ValueType (Luciad.Datamodels.DataType type) |
| Sets the data type for the data property under construction. | |
Builder that allows DataProperty instances to be created.
Typical usage would be to create a DataProperty.Builder using DataProperty.NewBuilder, specifying the name of the data property. Then, specify the value type and finally build() the data property. The following snippet shows how this is done for a simple example data property:
|
inline |
Copy constructor.
| other | the builder to copy. |
|
inline |
Adds an annotation to the data property under construction.
| annotation | the annotation to add. |
| System.ArgumentNullException | when a null value is passed. |
|
inline |
Build the data type, including the value type that was set on this builder.
After calling this function, you should no longer use this builder.
| System.InvalidOperationException | If not all mandatory parameters are set. |
|
inline |
Sets the collection type of the data property under construction.
Calling this function is optional. The default is DataCollectionKind.Scalar.
| type | the collection type for the data property under construction. |
|
inline |
|
inline |
Sets the name of the data property.
Calling this function is mandatory.
| name | name of the data property. |
|
inline |
Sets the data type for the data property under construction.
For a list-typed property (see collectionKind(DataCollectionKind)), this is the type of the elements in the list.
Calling this function is mandatory.
| type | the data type for the data property under construction. |