共用方式為


DnssdServiceInstanceCollection.GetMany(UInt32, DnssdServiceInstance[]) 方法

定義

從 DNS-SD 服務實例集合取得多個 DnssdServiceInstance 物件。

注意

不支援 DnssdServiceInstanceCollection,未來可能會改變或無法使用。 請改用 Windows.Devices.Enumeration API。

public:
 virtual unsigned int GetMany(unsigned int startIndex, Platform::Array <DnssdServiceInstance ^> ^ items) = IVectorView<DnssdServiceInstance ^>::GetMany;
uint32_t GetMany(uint32_t const& startIndex, winrt::array_view <DnssdServiceInstance const&> & items);
public uint GetMany(uint startIndex, DnssdServiceInstance[] items);
function getMany(startIndex, items)
Public Function GetMany (startIndex As UInteger, items As DnssdServiceInstance()) As UInteger

參數

startIndex
UInt32

unsigned int

uint32_t

要擷取之第一個集合專案的索引。

items
DnssdServiceInstance[]

擷取的 DnssdServiceInstance 物件。

傳回

UInt32

unsigned int

uint32_t

專案中的專案數。

實作

M:Windows.Foundation.Collections.IVectorView1.GetMany(System.UInt32,0[]) M:Windows.Foundation.Collections.IVectorView1.GetMany(unsigned int,0[]) M:Windows.Foundation.Collections.IVectorView1.GetMany(uint32_t,0[])

適用於