Table of Contents

Class UsageCredit

Namespace
Microsoft.ServiceBus.Management
Assembly
Microsoft.ServiceBus.dll

Represents the usage credit management.

[DataContract(Name = "UsageCredit", Namespace = "http://schemas.microsoft.com/netservices/2010/10/servicebus/connect")]
public class UsageCredit : IExtensibleDataObject, IEquatable<UsageCredit>
Inheritance
UsageCredit
Implements
IExtensibleDataObject
Inherited Members

Constructors

UsageCredit()

public UsageCredit()

Fields

Serializer

Specifies the usage credit serializer.

public static readonly DataContractSerializer Serializer

Field Value

DataContractSerializer

Properties

ExtensionData

Gets or sets the object that stores data

public ExtensionDataObject ExtensionData { get; set; }

Property Value

ExtensionDataObject

The object that stores data

Identifier

Gets or sets the credit identifier.

[DataMember(Name = "Identifier", IsRequired = true, Order = 1003, EmitDefaultValue = false)]
public string Identifier { get; set; }

Property Value

string

The credit identifier.

KeyName

Gets or sets the key name associated with the credit.

[DataMember(Name = "KeyName", IsRequired = false, Order = 1001, EmitDefaultValue = false)]
public string KeyName { get; set; }

Property Value

string

The key name associated with the credit.

NHBasicUnit

Gets or sets the Basic Tier unit of the notification hub.

[DataMember(Name = "NHBasicUnit", IsRequired = false, Order = 1004, EmitDefaultValue = false)]
public int? NHBasicUnit { get; set; }

Property Value

int?

The basic unit of the notification hub.

NHStandardUnit

Gets or sets the Standard Tier unit of the notification hub.

[DataMember(Name = "NHStandardUnit", IsRequired = false, Order = 1005, EmitDefaultValue = false)]
public int? NHStandardUnit { get; set; }

Property Value

int?

The standard unit of the notification hub.

NamespaceName

Gets or sets the namespace name associated with the credit.

public string NamespaceName { get; set; }

Property Value

string

Returns string.

RequestorService

Gets or sets the requestor service.

[DataMember(Name = "RequestorService", IsRequired = true, Order = 1002, EmitDefaultValue = false)]
public string RequestorService { get; set; }

Property Value

string

The requestor service.

Revision

Gets or sets the credit revision.

[DataMember(Name = "Revision", IsRequired = false, Order = 1006, EmitDefaultValue = true)]
public long Revision { get; set; }

Property Value

long

The credit revision.

SubscriptionId

Gets or sets the Azure subscription ID associated with the credit.

public string SubscriptionId { get; set; }

Property Value

string

Returns string.

UpdatedAt

Gets or sets the last date when the credit details were updated.

[DataMember(Name = "UpdatedAt", IsRequired = false, Order = 1007, EmitDefaultValue = false)]
public DateTime UpdatedAt { get; set; }

Property Value

DateTime

The last date when the credit details were updated.

Methods

Equals(UsageCredit)

Specifies whether this instance is equal with another usage credit.

public bool Equals(UsageCredit other)

Parameters

other UsageCredit

The other usage credit to compare.

Returns

bool

true if this instance is equal with another usage credit; otherwise, false.

ToString()

Returns a string representation of UsageCredit.

public override string ToString()

Returns

string

A string representation of UsageCredit.