DnssdServiceInstanceCollection 클래스

정의

DNS-SD(DNS 서비스 검색) 서비스 인스턴스의 컬렉션입니다.

참고

DnssdServiceInstanceCollection은 지원되지 않으며 나중에 변경되거나 사용할 수 없습니다. 대신 Windows.Devices.Enumeration API를 사용합니다.

참고

Win32 DNS-SD(DNS 서비스 검색) API는 windns.h 헤더에 선언됩니다. 예를 들어 서비스를 발표하고 검색하기 위한 Win32 API는 DnsServiceRegisterDnsServiceBrowse입니다.

public ref class DnssdServiceInstanceCollection sealed : IIterable<DnssdServiceInstance ^>, IVectorView<DnssdServiceInstance ^>
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class DnssdServiceInstanceCollection final : IIterable<DnssdServiceInstance>, IVectorView<DnssdServiceInstance>
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class DnssdServiceInstanceCollection : IEnumerable<DnssdServiceInstance>, IReadOnlyList<DnssdServiceInstance>
Public NotInheritable Class DnssdServiceInstanceCollection
Implements IEnumerable(Of DnssdServiceInstance), IReadOnlyList(Of DnssdServiceInstance)
상속
Object Platform::Object IInspectable DnssdServiceInstanceCollection
특성
구현

Windows 요구 사항

디바이스 패밀리
Windows 10 (10.0.10240.0에서 도입되었습니다.)
API contract
Windows.Foundation.UniversalApiContract (v1.0에서 도입되었습니다.)

설명

코드에서 DnssdServiceInstanceCollection을 직접 만들지 않습니다. 대신 DnssdServiceWatcher.EnumerationCompleted 이벤트를 처리합니다. 해당 이벤트가 트리거되면 이벤트 처리기에 대한 두 번째 인수는 검색된 서비스 인스턴스에 대한 정보를 포함하는 DnssdServiceInstanceCollection 개체에 대한 포인터입니다.

속성

Size

컬렉션의 항목 수를 가져옵니다.

참고

DnssdServiceInstanceCollection은 지원되지 않으며 나중에 변경되거나 사용할 수 없습니다. 대신 Windows.Devices.Enumeration API를 사용합니다.

메서드

First()

instance 컬렉션의 첫 번째 항목을 참조하도록 초기화된 반복기를 가져옵니다.

참고

DnssdServiceInstanceCollection은 지원되지 않으며 나중에 변경되거나 사용할 수 없습니다. 대신 Windows.Devices.Enumeration API를 사용합니다.

GetAt(UInt32)

DnssdServiceInstanceCollection에 지정된 인덱스의 DnssdServiceInstance를 가져옵니다.

참고

DnssdServiceInstanceCollection은 지원되지 않으며 나중에 변경되거나 사용할 수 없습니다. 대신 Windows.Devices.Enumeration API를 사용합니다.

GetMany(UInt32, DnssdServiceInstance[])

DNS-SD 서비스 instance 컬렉션에서 여러 DnssdServiceInstance 개체를 가져옵니다.

참고

DnssdServiceInstanceCollection은 지원되지 않으며 나중에 변경되거나 사용할 수 없습니다. 대신 Windows.Devices.Enumeration API를 사용합니다.

IndexOf(DnssdServiceInstance, UInt32)

지정된 DnssdServiceInstance가 이 서비스 instance 컬렉션의 지정된 인덱스에 있는지 여부를 나타내는 값을 가져옵니다.

참고

DnssdServiceInstanceCollection은 지원되지 않으며 나중에 변경되거나 사용할 수 없습니다. 대신 Windows.Devices.Enumeration API를 사용합니다.

적용 대상

추가 정보