Język

SendDhcpHostnameRestriction Enum

Definition

Selects network categories on which to suppress the DHCP hostname.

public enum SendDhcpHostnameRestriction
type SendDhcpHostnameRestriction = 
Inheritance
SendDhcpHostnameRestriction

Fields

Name Value Description
Open 1

Do not send the DHCP hostname to open networks.

Android reference for android.net.wifi.WifiManager.FLAG_SEND_DHCP_HOSTNAME_RESTRICTION_OPEN.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Secure 2

Do not send the DHCP hostname to secure network.

Android reference for android.net.wifi.WifiManager.FLAG_SEND_DHCP_HOSTNAME_RESTRICTION_SECURE.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Remarks

SetSendDhcpHostnameRestriction(SendDhcpHostnameRestriction) accepts these flags. Combine the open-network and secure-network bits to restrict both categories.

Applies to