Condividi tramite


Entity Class

Definition

Entities carry metadata about an activity or conversation. Each entity's meaning and shape is defined by the type field. Additional type-specific fields sit as peers to the type field.

Some Microsoft entities may have a preexisting field called type. Parties integrating these entities into the activity entity format are advised to define field-level mapping to resolve conflicts with the type field name and other incompatibilities with serialization requirement A2001 as part of the IRI defining the entity type.

Frequently, entities used within Activity Protocol are also expressed elsewhere using JSON-LD[17]. The entity format is designed to be compatible with JSON-LD contexts, but does not require senders or receivers to implement JSON-LD to successfully process an entity.

public class Entity
type Entity = class
Public Class Entity
Inheritance
Entity
Derived

Constructors

Entity()

Initializes a new instance of Entity.

Entity(String)

Initializes a new instance of Entity.

Properties

Properties

Gets properties that are not otherwise defined by the Entity type but that might appear in the REST JSON object.

Type

Type of this entity (RFC 3987 IRI).

Methods

Equals(Entity)

Indicates whether the current object is equal to another object of the same type.

Equals(Object)

Determines whether the specified object is equal to the current object.

GetHashCode()

Hash function that generates a hash code for the current object.

Extension Methods

GetAs<T>(Entity)

Retrieve internal payload.

SetAs<T>(Entity, T)

Set internal payload.

Applies to