Click or drag to resize

Metadata Class

A collection of metadata entries that can be exchanged during a call. gRPC supports these types of metadata:
  • Request headers - are sent by the client at the beginning of a remote call before any request messages are sent.
  • Response headers - are sent by the server at the beginning of a remote call handler before any response messages are sent.
  • Response trailers - are sent by the server at the end of a remote call along with resulting call status.
Inheritance Hierarchy
SystemObject
  Grpc.CoreMetadata

Namespace:  Grpc.Core
Assembly:  Grpc.Core (in Grpc.Core.dll) Version: 1.2.0-dev
Syntax
public sealed class Metadata : IList<MetadataEntry>, 
	ICollection<MetadataEntry>, IEnumerable<MetadataEntry>, IEnumerable

The Metadata type exposes the following members.

Constructors
  NameDescription
Public methodMetadata
Initializes a new instance of Metadata.
Top
Properties
  NameDescription
Public propertyCount
IList
Public propertyIsReadOnly
IList
Public propertyItem
IList
Top
Methods
  NameDescription
Public methodAdd(MetadataEntry)
IList
Public methodAdd(String, Byte)
IList
Public methodAdd(String, String)
IList
Public methodClear
IList
Public methodContains
IList
Public methodCopyTo
IList
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetEnumerator
IList
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIndexOf
IList
Public methodInsert
IList
Public methodRemove
IList
Public methodRemoveAt
IList
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Fields
  NameDescription
Public fieldStatic memberBinaryHeaderSuffix
All binary headers should have this suffix.
Public fieldStatic memberEmpty
An read-only instance of metadata containing no entries.
Top
See Also