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[])

适用于