次の方法で共有


BluetoothAdapter.Name Property

Definition

Get the friendly Bluetooth name of the local Bluetooth adapter.

public string? Name { [Android.Runtime.Register("getName", "()Ljava/lang/String;", "")] [Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")] get; }
[<get: Android.Runtime.Register("getName", "()Ljava/lang/String;", "")>]
[<get: Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")>]
member this.Name : string

Property Value

the Bluetooth name, or null on error

Attributes

Remarks

Java documentation for android.bluetooth.BluetoothAdapter.getName().

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.

Applies to