Collapse All Expand All | Language Filter: C#Language Filter: Visual Basic Language Filter: Visual C++ C# Visual Basic Visual C++ | See Also
StreamBase Client API
Tuple..::SetField Method (Schema..::..Field, Object)

Set the given field to the given value. The value is parsed according to the field type.

The Schema.Field objects used to set and get Tuple field values must be obtained via the Tuple's Schema object. A Schema.Field object that has been created by the user or retrieved from a different Schema may not work.

Namespace: StreamBase.SB
Assembly: StreamBase.SB.Client (in StreamBase.SB.Client.dll) Version: 10.3.0.0

# Syntax

| C# |  |  | Visual Basic |  |  | Visual C++ |

    public virtual void SetField(
    	Schema..::..Field field,
    	Object value
    )

    Public Overridable Sub SetField ( _
    	field As Schema..::..Field, _
    	value As Object _
    )

    public:
    virtual void SetField(
    	Schema..::..Field^ field,
    	Object^ value
    )

#### Parameters

field
  Schema..::..Field

value
  Object

# Exceptions

Exception | Condition
--- | ---
StreamBase.SB..::..NoSuchFieldException |
StreamBase.SB..::..TupleStringLengthException | String is longer than field length
StreamBase.SB..::..TupleFieldTypingException | Field type does not match value type
StreamBase.SB..::..TupleBadFieldException |
StreamBase.SB..::..TupleException | There was a conversion error or the field doesn't exist
StreamBase.SB..::..StreamBaseException |

# See Also

Tuple Class
SetField Overload
StreamBase.SB Namespace