共用方式為


BluetoothDevice.Name Property

Definition

Get the friendly Bluetooth name of the remote device.

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 if there was a problem.

Attributes

Remarks

Java documentation for android.bluetooth.BluetoothDevice.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