Provides methods to set metered key. More...

Inherits Object.

Public Member Functions

ASPOSE_EMAIL_SHARED_API Metered ()
 Initializes a new instance of this class. More...
 
ASPOSE_EMAIL_SHARED_API void SetMeteredKey (System::String publicKey, System::String privateKey)
 Sets metered public and private key More...
 

Static Public Member Functions

static ASPOSE_EMAIL_SHARED_API System::Decimal GetConsumptionQuantity ()
 Gets consumption file size More...
 
static ASPOSE_EMAIL_SHARED_API void SetConsumption (System::Decimal dataSize)
 Sets the data consumption. More...
 
static ASPOSE_EMAIL_SHARED_API void IncreaseCredit ()
 Increases the credit. More...
 
static ASPOSE_EMAIL_SHARED_API System::Decimal GetConsumptionCredit ()
 Gets consumption credit More...
 

Friends

class Aspose::Email::MailMessage
 
class Aspose::Email::AntiSpam::SpamAnalyzer
 
class Aspose::Email::Calendar::CalendarReader
 
class Aspose::Email::Mapi::MapiTask
 
class Aspose::Email::Clients::Exchange::WebService::EWSClient2007
 
class Aspose::Email::XmlReaderBuilderEwsMettered
 
class Aspose::Email::XmlWriterEwsMettered
 
class Aspose::Email::Mapi::MapiDistributionList
 
class Aspose::Email::Clients::Exchange::WebService::ExchangeCalendarSharingInvitationBuilder
 
class Aspose::Email::PersonalInfo::Contact
 
class Aspose::Email::Storage::Pst::Ltp::PropertyInfo
 
class Aspose::Email::Calendar::Appointment
 
class Aspose::Email::Calendar::Model::CalendarObject
 
class Aspose::Email::Storage::Mbox::MboxrdStorageWriter
 
class Aspose::Email::Storage::Mbox::MboxrdStorageReader
 
class Aspose::Email::Mapi::MapiAttachment
 
class Aspose::Email::Mapi::MapiCalendar
 
class Aspose::Email::Mapi::MapiContact
 
class Aspose::Email::Mapi::MapiJournal
 
class Aspose::Email::Mapi::MapiMessage
 
class Aspose::Email::Mapi::MapiMessageReader
 
class Aspose::Email::Mapi::MapiNote
 
class Aspose::Email::Mapi::Msg::MessageObject
 
class Aspose::Email::Storage::Pst::Ltp::PropertyContext
 
class Aspose::Email::Storage::Pst::FolderInfo
 
class Aspose::Email::Storage::Pst::PersonalStorage
 
class Aspose::Email::Storage::Pst::PstDoer
 
class Aspose::Email::Mapi::StructuredStorage::FileSystem
 
class Aspose::Email::PersonalInfo::VCard::VCard
 
class Aspose::Email::PersonalInfo::VCard::VCardContact
 
class Aspose::Email::PersonalInfo::VCard::VCardSecurity
 
class Aspose::Email::AttachmentBase
 
class Aspose::Email::Clients::Exchange::Dav::WebDavDiagnosticRequest
 
class Aspose::Email::Clients::Google::Commands::BaseGoogleServiceCommand
 
class Aspose::Email::Clients::Exchange::Dav::ExchangeClient
 
class Aspose::Email::Clients::Base::BufferedNetStream
 

Detailed Description

Provides methods to set metered key.

In this example, an attempt will be made to set metered public and private key

<ms>

[C#]
Metered matered = new Metered();
matered.SetMeteredKey("PublicKey", "PrivateKey");
[Visual Basic]
Dim matered As Metered = New Metered
matered.SetMeteredKey("PublicKey", "PrivateKey")

</ms>

<java> the component jar file:

Metered matered = new Metered();
matered.setMeteredKey("PublicKey", "PrivateKey");

</java>

Constructor & Destructor Documentation

◆ Metered()

ASPOSE_EMAIL_SHARED_API Aspose::Email::Metered::Metered ( )

Initializes a new instance of this class.

Member Function Documentation

◆ GetConsumptionCredit()

static ASPOSE_EMAIL_SHARED_API System::Decimal Aspose::Email::Metered::GetConsumptionCredit ( )
static

Gets consumption credit

Returns
consumption quantity

◆ GetConsumptionQuantity()

static ASPOSE_EMAIL_SHARED_API System::Decimal Aspose::Email::Metered::GetConsumptionQuantity ( )
static

Gets consumption file size

Returns
consumption quantity

◆ IncreaseCredit()

static ASPOSE_EMAIL_SHARED_API void Aspose::Email::Metered::IncreaseCredit ( )
static

Increases the credit.

◆ SetConsumption()

static ASPOSE_EMAIL_SHARED_API void Aspose::Email::Metered::SetConsumption ( System::Decimal  dataSize)
static

Sets the data consumption.

Parameters
dataSizeData size in bytes.

◆ SetMeteredKey()

ASPOSE_EMAIL_SHARED_API void Aspose::Email::Metered::SetMeteredKey ( System::String  publicKey,
System::String  privateKey 
)

Sets metered public and private key

Parameters
publicKeypublic key
privateKeyprivate key

Friends And Related Function Documentation

◆ Aspose::Email::AntiSpam::SpamAnalyzer

◆ Aspose::Email::AttachmentBase

friend class Aspose::Email::AttachmentBase
friend

◆ Aspose::Email::Calendar::Appointment

◆ Aspose::Email::Calendar::CalendarReader

◆ Aspose::Email::Calendar::Model::CalendarObject

friend class Aspose::Email::Calendar::Model::CalendarObject
friend

◆ Aspose::Email::Clients::Base::BufferedNetStream

friend class Aspose::Email::Clients::Base::BufferedNetStream
friend

◆ Aspose::Email::Clients::Exchange::Dav::ExchangeClient

friend class Aspose::Email::Clients::Exchange::Dav::ExchangeClient
friend

◆ Aspose::Email::Clients::Exchange::Dav::WebDavDiagnosticRequest

friend class Aspose::Email::Clients::Exchange::Dav::WebDavDiagnosticRequest
friend

◆ Aspose::Email::Clients::Exchange::WebService::EWSClient2007

friend class Aspose::Email::Clients::Exchange::WebService::EWSClient2007
friend

◆ Aspose::Email::Clients::Exchange::WebService::ExchangeCalendarSharingInvitationBuilder

friend class Aspose::Email::Clients::Exchange::WebService::ExchangeCalendarSharingInvitationBuilder
friend

◆ Aspose::Email::Clients::Google::Commands::BaseGoogleServiceCommand

friend class Aspose::Email::Clients::Google::Commands::BaseGoogleServiceCommand
friend

◆ Aspose::Email::MailMessage

friend class Aspose::Email::MailMessage
friend

◆ Aspose::Email::Mapi::MapiAttachment

◆ Aspose::Email::Mapi::MapiCalendar

friend class Aspose::Email::Mapi::MapiCalendar
friend

◆ Aspose::Email::Mapi::MapiContact

friend class Aspose::Email::Mapi::MapiContact
friend

◆ Aspose::Email::Mapi::MapiDistributionList

friend class Aspose::Email::Mapi::MapiDistributionList
friend

◆ Aspose::Email::Mapi::MapiJournal

friend class Aspose::Email::Mapi::MapiJournal
friend

◆ Aspose::Email::Mapi::MapiMessage

friend class Aspose::Email::Mapi::MapiMessage
friend

◆ Aspose::Email::Mapi::MapiMessageReader

friend class Aspose::Email::Mapi::MapiMessageReader
friend

◆ Aspose::Email::Mapi::MapiNote

friend class Aspose::Email::Mapi::MapiNote
friend

◆ Aspose::Email::Mapi::MapiTask

friend class Aspose::Email::Mapi::MapiTask
friend

◆ Aspose::Email::Mapi::Msg::MessageObject

friend class Aspose::Email::Mapi::Msg::MessageObject
friend

◆ Aspose::Email::Mapi::StructuredStorage::FileSystem

friend class Aspose::Email::Mapi::StructuredStorage::FileSystem
friend

◆ Aspose::Email::PersonalInfo::Contact

◆ Aspose::Email::PersonalInfo::VCard::VCard

friend class Aspose::Email::PersonalInfo::VCard::VCard
friend

◆ Aspose::Email::PersonalInfo::VCard::VCardContact

friend class Aspose::Email::PersonalInfo::VCard::VCardContact
friend

◆ Aspose::Email::PersonalInfo::VCard::VCardSecurity

friend class Aspose::Email::PersonalInfo::VCard::VCardSecurity
friend

◆ Aspose::Email::Storage::Mbox::MboxrdStorageReader

friend class Aspose::Email::Storage::Mbox::MboxrdStorageReader
friend

◆ Aspose::Email::Storage::Mbox::MboxrdStorageWriter

friend class Aspose::Email::Storage::Mbox::MboxrdStorageWriter
friend

◆ Aspose::Email::Storage::Pst::FolderInfo

friend class Aspose::Email::Storage::Pst::FolderInfo
friend

◆ Aspose::Email::Storage::Pst::Ltp::PropertyContext

friend class Aspose::Email::Storage::Pst::Ltp::PropertyContext
friend

◆ Aspose::Email::Storage::Pst::Ltp::PropertyInfo

friend class Aspose::Email::Storage::Pst::Ltp::PropertyInfo
friend

◆ Aspose::Email::Storage::Pst::PersonalStorage

◆ Aspose::Email::Storage::Pst::PstDoer

Aspose::Email::Storage::Pst::PstDoer
friend

◆ Aspose::Email::XmlReaderBuilderEwsMettered

friend class Aspose::Email::XmlReaderBuilderEwsMettered
friend

◆ Aspose::Email::XmlWriterEwsMettered

friend class Aspose::Email::XmlWriterEwsMettered
friend
ASPOSE_EMAIL_SHARED_API Metered()
Initializes a new instance of this class.
Basic access authentication.