Table of Contents

Class Offer

Namespace
Microsoft.Azure.Documents
Assembly
Microsoft.Azure.Documents.Client.dll

Represents the offer for a resource (collection) in the Azure Cosmos DB service.

public class Offer : Resource
Inheritance
Offer
Derived
Inherited Members
Extension Methods

Remarks

Currently, offers are only bound to the collection resource.

Constructors

Offer()

Initializes a Resource offer for the Azure Cosmos DB service.

public Offer()

Offer(Offer)

Initializes a Resource offer from another offer object for the Azure Cosmos DB service.

public Offer(Offer offer)

Parameters

offer Offer

Properties

OfferType

Gets or sets the OfferType for the resource offer in the Azure Cosmos DB service.

public string OfferType { get; set; }

Property Value

string

OfferVersion

Gets or sets the version of this offer resource in the Azure Cosmos DB service.

public string OfferVersion { get; }

Property Value

string

Gets or sets the self-link of a resource to which the resource offer applies to in the Azure Cosmos DB service.

public string ResourceLink { get; }

Property Value

string

Methods

Equals(Offer)

Compares the offer object with the current offer

public bool Equals(Offer offer)

Parameters

offer Offer

Returns

bool

Boolean representing the equality result