次の方法で共有


DnssdServiceInstanceCollection.IndexOf(DnssdServiceInstance, UInt32) メソッド

定義

指定 された DnssdServiceInstance がこのサービス インスタンス コレクション内の指定したインデックスにあるかどうかを示す値を取得します。

Note

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

パラメーター

index
UInt32

unsigned int

uint32_t

DnssdServiceInstance が見つかった場合のインデックス。

戻り値

Boolean

bool

valueインデックスで見つかった場合は 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@)

適用対象