(mdhcp.h) 的 IMcastLeaseInfo 接口

[会合 IP 电话会议控件和接口不适用于 Windows Vista、Windows Server 2008 和操作系统的后续版本。 RTC 客户端 API 提供类似的功能。]

IMcastLeaseInfo 接口公开可获取或设置有关多播地址分配的信息的方法。 IMcastLease 对象是通过调用 IMcastAddressAllocation::CreateLeaseInfo 创建的。

继承

IMcastLeaseInfo 接口继承自 IDispatch 接口。 IMcastLeaseInfo 还具有以下类型的成员:

方法

IMcastLeaseInfo 接口包含以下方法。

 
IMcastLeaseInfo::EnumerateAddresses

EnumerateAddresses 方法获取多播地址的集合,这些地址是此租约或租约请求的主题。 此方法主要用于 C++ 程序员。 Visual Basic 和其他脚本语言改用 get_Addresses。
IMcastLeaseInfo::get_AddressCount

get_AddressCount 方法获取此租约中请求或授予的地址数。
IMcastLeaseInfo::get_Addresses

get_Addresses 方法获取多播地址的集合,这些地址是此租约或租约请求的主题。 此方法主要用于 Visual Basic 和其他脚本语言;C++ 程序员改用 EnumerateAddresses。
IMcastLeaseInfo::get_LeaseStartTime

get_LeaseStartTime 方法获取租约的开始时间。
IMcastLeaseInfo::get_LeaseStopTime

get_LeaseStopTime 方法获取租约的停止时间。
IMcastLeaseInfo::get_RequestID

get_RequestID 方法获取租约的请求 ID。
IMcastLeaseInfo::get_ServerAddress

get_ServerAddress 方法获取一个字符串,表示授予此租约的多播服务器的地址。
IMcastLeaseInfo::get_TTL

get_TTL 方法获取与此租约关联的生存时间 (TTL) 值。
IMcastLeaseInfo::p ut_LeaseStartTime

put_LeaseStartTime 方法设置租约的开始时间。 此方法与 put_LeaseStopTime 一起允许续订租约,而无需调用 IMcastAddressAllocation::CreateLeaseInfo。
IMcastLeaseInfo::p ut_LeaseStopTime

put_LeaseStopTime 方法设置租约的停止时间。 使用此方法以及 put_LeaseStartTime,无需调用 IMcastAddressAllocation::CreateLeaseInfo 即可续订租约。

要求

要求
目标平台 Windows
标头 mdhcp.h

另请参阅

IDispatch

IMcastAddressAllocation

IMcastAddressAllocation::CreateLeaseInfo

IMcastAddressAllocation::RenewAddress

IMcastAddressAllocation::RequestAddress

IMcastScope