共用方式為


BluetoothClassOfDevice.FromParts 方法

定義

public:
 static BluetoothClassOfDevice ^ FromParts(BluetoothMajorClass majorClass, BluetoothMinorClass minorClass, BluetoothServiceCapabilities serviceCapabilities);
 static BluetoothClassOfDevice FromParts(BluetoothMajorClass const& majorClass, BluetoothMinorClass const& minorClass, BluetoothServiceCapabilities const& serviceCapabilities);
public static BluetoothClassOfDevice FromParts(BluetoothMajorClass majorClass, BluetoothMinorClass minorClass, BluetoothServiceCapabilities serviceCapabilities);
function fromParts(majorClass, minorClass, serviceCapabilities)
Public Shared Function FromParts (majorClass As BluetoothMajorClass, minorClass As BluetoothMinorClass, serviceCapabilities As BluetoothServiceCapabilities) As BluetoothClassOfDevice

參數

majorClass
BluetoothMajorClass

其中一個列舉值,指定裝置的主要函式。

minorClass
BluetoothMinorClass

其中一個列舉值,指定要使用的次要類別值。

serviceCapabilities
BluetoothServiceCapabilities

其中一個列舉值,指定裝置支援的服務。

傳回

BluetoothClassOfDevice 物件。

Windows 需求

應用程式功能
bluetooth

適用於