AWS SDK Version 4 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Inheritance Hierarchy

Amazon.Runtime.EventStreams.IEventStreamHeader

Namespace: Amazon.Runtime.EventStreams
Assembly: AWSSDK.Core.dll
Version: 3.x.y.z

Syntax

C#
public interface IEventStreamHeader

The IEventStreamHeader type exposes the following members

Properties

NameTypeDescription
Public Property HeaderType Amazon.Runtime.EventStreams.EventStreamHeaderType

Header type id

Public Property Name System.String

Name for the Header. Maximum of 255 bytes.

Methods

Note:

Asynchronous operations (methods ending with Async) in the table below are for .NET 4.7.2 or higher.

NameDescription
Public Method AsBool()

Returns the current value as a bool

Public Method AsByteBuf()

Returns the current value as a byte buffer.

Public Method AsInt16()

Gets the current value as a 16 bit integer. (Host Order).

Public Method AsInt32()

Returns the current value as a 32 bit integer. (Host Order)

Public Method AsInt64()

returns the current value as a 64-bit integer. (Host Order)

Public Method AsSByte()

Returns the current value as a signed byte

Public Method AsString()

Returns the current value as a utf-8 string.

Public Method AsTimestamp()

Gets the current value as a DateTime. Note: You do not need to compensate for unix epoch on this API.

Public Method AsUUID()

Returns the current value as a Guid (UUID)

Public Method GetWireSize()

Computes the amount of memory neccesary to serialize this Header.

Public Method SetBool(bool)

Sets the current value

Public Method SetByteBuf(Byte[])

Sets the current value. Max length is 2^15 - 1

Public Method SetInt16(Int16)

Sets the current value. (Host Order)

Public Method SetInt32(int)

Sets the current value

Public Method SetInt64(Int64)

Sets the current value. (Host Order)

Public Method SetSByte(SByte)

Sets the current value

Public Method SetString(string)

Sets the current value. Utf-8 encoded. Max byte size is 2^16 - 1

Public Method SetTimestamp(DateTime)

Sets the current value. Note: You do not need to compensate for unix epoch on this API.

Public Method SetUUID(Guid)

Sets the current value

Public Method WriteToBuffer(Byte[], int)

Writes this Header to buffer starting at offset Keep in mind, this API assumes buffer is large enough for the operation.

Version Information

.NET:
Supported in: 8.0 and newer, Core 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.7.2 and newer