DnssdServiceInstanceCollection.GetMany(UInt32, DnssdServiceInstance[]) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
從 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 物件。
傳回
專案中的專案數。
實作
M:Windows.Foundation.Collections.IVectorView
1.GetMany(System.UInt32,
0[])
M:Windows.Foundation.Collections.IVectorView1.GetMany(unsigned int,
0[])
M:Windows.Foundation.Collections.IVectorView1.GetMany(uint32_t,
0[])