Class FieldDefinitionExtensions
Inherited Members
Namespace: Unity.Cloud.Assets
Assembly: Unity.Cloud.Assets.dll
Syntax
public static class FieldDefinitionExtensions
Methods
AsSelectionFieldDefinition(IFieldDefinition)
Returns the field definition as a ISelectionFieldDefinition.
Declaration
public static ISelectionFieldDefinition AsSelectionFieldDefinition(this IFieldDefinition fieldDefinition)
Parameters
| Type | Name | Description |
|---|---|---|
| IFieldDefinition | fieldDefinition | A field definition. |
Returns
| Type | Description |
|---|---|
| ISelectionFieldDefinition |
Exceptions
| Type | Condition |
|---|---|
| InvalidCastException | If the field definition is not of type Selection |
AsSelectionFieldDefinitionProperties(FieldDefinitionProperties)
Returns the field definition properties for a field of type selection.
Declaration
public static SelectionFieldDefinitionProperties AsSelectionFieldDefinitionProperties(this FieldDefinitionProperties fieldDefinitionProperties)
Parameters
| Type | Name | Description |
|---|---|---|
| FieldDefinitionProperties | fieldDefinitionProperties | A field definition's properties. |
Returns
| Type | Description |
|---|---|
| SelectionFieldDefinitionProperties |
Exceptions
| Type | Condition |
|---|---|
| InvalidCastException | If the field definition is not of type Selection |