Share via


WiFiDirectServiceStatus Enum

Definition

Values used to describe the service status.

public enum class WiFiDirectServiceStatus
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
enum class WiFiDirectServiceStatus
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum WiFiDirectServiceStatus
var value = Windows.Devices.WiFiDirect.Services.WiFiDirectServiceStatus.available
Public Enum WiFiDirectServiceStatus
Inheritance
WiFiDirectServiceStatus
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Fields

Name Value Description
Available 0

The service is available.

Busy 1

The service is not currently accepting connections.

Custom 2

The service is returning service-defined custom status values. Get the status value from the WiFiDirectServiceAdvertiser.CustomServiceStatusCode property.

Applies to