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: 0.7.0.0
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
Public propertyIsReadOnly
Public propertyItem
Top
Methods
  NameDescription
Public methodAdd(MetadataEntry)
Public methodAdd(String, Byte)
Public methodAdd(String, String)
Public methodClear
Public methodContains
Public methodCopyTo
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetEnumerator
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
Public methodInsert
Public methodRemove
Public methodRemoveAt
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