Поделиться через


DnssdServiceInstanceCollection.GetAt(UInt32) Метод

Определение

Возвращает dnssdServiceInstance по заданному индексу в коллекцию DnssdServiceInstanceCollection.

Примечание

DnssdServiceInstanceCollection не поддерживается и может быть изменен или недоступен в будущем. Вместо этого используйте API Windows.Devices.Enumeration.

public:
 virtual DnssdServiceInstance ^ GetAt(unsigned int index) = IVectorView<DnssdServiceInstance ^>::GetAt;
DnssdServiceInstance GetAt(uint32_t const& index);
public DnssdServiceInstance GetAt(uint index);
function getAt(index)
Public Function GetAt (index As UInteger) As DnssdServiceInstance

Параметры

index
UInt32

unsigned int

uint32_t

Индекс извлекаемого экземпляра. Основание индексов — 0. Если в коде указан индекс, который выходит за пределы границ, возникает исключение. Максимально допустимый индекс равен 1 меньше значения DnssdServiceInstanceCollection.Size .

Возвращаемое значение

DnssdServiceInstance по заданному индексу в коллекции.

Реализации

M:Windows.Foundation.Collections.IVectorView`1.GetAt(System.UInt32) M:Windows.Foundation.Collections.IVectorView`1.GetAt(unsigned int) M:Windows.Foundation.Collections.IVectorView`1.GetAt(uint32_t)

Применяется к