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


DnssdServiceInstanceCollection.IndexOf(DnssdServiceInstance, UInt32) Метод

Определение

Возвращает значение, указывающее, находится ли заданное свойство DnssdServiceInstance по указанному индексу в коллекции экземпляров службы.

Примечание

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

public:
 virtual bool IndexOf(DnssdServiceInstance ^ value, [Out] unsigned int & index) = IVectorView<DnssdServiceInstance ^>::IndexOf;
bool IndexOf(DnssdServiceInstance const& value, [Out] uint32_t & index);
public bool IndexOf(DnssdServiceInstance value, out uint index);
Public Function IndexOf (value As DnssdServiceInstance, ByRef index As UInteger) As Boolean

Параметры

value
DnssdServiceInstance

DnssdServiceInstance для получения индекса.

index
UInt32

unsigned int

uint32_t

Индекс, если найден dnssdServiceInstance .

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

Boolean

bool

Значение true , если значение найдено по индексу, значение false в противном случае.

Реализации

M:Windows.Foundation.Collections.IVectorView1.IndexOf(0,System.UInt32@) M:Windows.Foundation.Collections.IVectorView1.IndexOf(0,unsigned int@) M:Windows.Foundation.Collections.IVectorView1.IndexOf(0,uint32_t@)

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