共用方式為


DnssdServiceInstanceCollection.IndexOf(DnssdServiceInstance, UInt32) 方法

定義

取得值,指出指定的 DnssdServiceInstance 是否在此服務實例集合中的指定索引處。

注意

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

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@)

適用於