RfcommServiceId RfcommServiceId RfcommServiceId RfcommServiceId Class

Definition

Represents an RFCOMM service ID.

public : sealed class RfcommServiceId : IRfcommServiceId
public sealed class RfcommServiceId : IRfcommServiceId
Public NotInheritable Class RfcommServiceId Implements IRfcommServiceId
// This class does not provide a public constructor.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)
Capabilities
bluetooth

Properties

GenericFileTransfer GenericFileTransfer GenericFileTransfer GenericFileTransfer

Creates a RfcommServiceId object corresponding to the service id for the standardized Generic File Transfer service (with short id 0x1202).

public : static RfcommServiceId GenericFileTransfer { get; }
public static RfcommServiceId GenericFileTransfer { get; }
Public Static ReadOnly Property GenericFileTransfer As RfcommServiceId
var rfcommServiceId = Windows.Devices.Bluetooth.Rfcomm.RfcommServiceId.genericFileTransfer;
Value
RfcommServiceId RfcommServiceId RfcommServiceId RfcommServiceId

The RfcommServiceId object that represents the service id for the Generic File Transfer service.

Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)
Capabilities
bluetooth

ObexFileTransfer ObexFileTransfer ObexFileTransfer ObexFileTransfer

Creates a RfcommServiceId object corresponding to the service id for the standardized OBEX File Transfer service (with short id 0x1106).

public : static RfcommServiceId ObexFileTransfer { get; }
public static RfcommServiceId ObexFileTransfer { get; }
Public Static ReadOnly Property ObexFileTransfer As RfcommServiceId
var rfcommServiceId = Windows.Devices.Bluetooth.Rfcomm.RfcommServiceId.obexFileTransfer;
Value
RfcommServiceId RfcommServiceId RfcommServiceId RfcommServiceId

The RfcommServiceId object that represents the service id for the Obex File Transfer service.

Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)
Capabilities
bluetooth

ObexObjectPush ObexObjectPush ObexObjectPush ObexObjectPush

Creates a RfcommServiceId object corresponding to the service id for the standardized OBEX Object Push service (with short id 0x1105).

public : static RfcommServiceId ObexObjectPush { get; }
public static RfcommServiceId ObexObjectPush { get; }
Public Static ReadOnly Property ObexObjectPush As RfcommServiceId
var rfcommServiceId = Windows.Devices.Bluetooth.Rfcomm.RfcommServiceId.obexObjectPush;
Value
RfcommServiceId RfcommServiceId RfcommServiceId RfcommServiceId

The RfcommServiceId object that represents the service id for the OBEX Object Push service.

Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)
Capabilities
bluetooth

PhoneBookAccessPce PhoneBookAccessPce PhoneBookAccessPce PhoneBookAccessPce

Creates a RfcommServiceId object corresponding to the service id for the standardized Phone Book Access (PCE) service (with short id 0x112E).

public : static RfcommServiceId PhoneBookAccessPce { get; }
public static RfcommServiceId PhoneBookAccessPce { get; }
Public Static ReadOnly Property PhoneBookAccessPce As RfcommServiceId
var rfcommServiceId = Windows.Devices.Bluetooth.Rfcomm.RfcommServiceId.phoneBookAccessPce;
Value
RfcommServiceId RfcommServiceId RfcommServiceId RfcommServiceId

The RfcommServiceId object that represents the service id for the Phone Book Access (PCE) service.

Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)
Capabilities
bluetooth

PhoneBookAccessPse PhoneBookAccessPse PhoneBookAccessPse PhoneBookAccessPse

Creates a RfcommServiceId object corresponding to the service id for the standardized Phone Book Access (PSE) service (with short id 0x112F).

public : static RfcommServiceId PhoneBookAccessPse { get; }
public static RfcommServiceId PhoneBookAccessPse { get; }
Public Static ReadOnly Property PhoneBookAccessPse As RfcommServiceId
var rfcommServiceId = Windows.Devices.Bluetooth.Rfcomm.RfcommServiceId.phoneBookAccessPse;
Value
RfcommServiceId RfcommServiceId RfcommServiceId RfcommServiceId

The RfcommServiceId object that represents the service id for the Phone Book Access (PSE) service.

Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)
Capabilities
bluetooth

SerialPort SerialPort SerialPort SerialPort

Creates a RfcommServiceId object corresponding to the service id for the standardized Serial Port service (with short id 0x1101).

public : static RfcommServiceId SerialPort { get; }
public static RfcommServiceId SerialPort { get; }
Public Static ReadOnly Property SerialPort As RfcommServiceId
var rfcommServiceId = Windows.Devices.Bluetooth.Rfcomm.RfcommServiceId.serialPort;
Value
RfcommServiceId RfcommServiceId RfcommServiceId RfcommServiceId

The RfcommServiceId object that represents the service id for the Serial Port service.

Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)
Capabilities
bluetooth

Uuid Uuid Uuid Uuid

Retrieves the 128-bit service id.

public : Platform::Guid Uuid { get; }
public Guid Uuid { get; }
Public ReadOnly Property Uuid As Guid
var guid = rfcommServiceId.uuid;
Value
Platform::Guid Guid Guid Guid

The 128-bit service id.

Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)
Capabilities
bluetooth

Methods

AsShortId() AsShortId() AsShortId() AsShortId()

Converts the RfcommServiceId to a 32-bit service id if possible.

public : unsigned int AsShortId()
public uint AsShortId()
Public Function AsShortId() As uint
var uint = rfcommServiceId.asShortId();
Returns
unsigned int uint uint uint

Returns the 32-bit service id if the RfcommServiceId represents a standardized service.

Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)
Capabilities
bluetooth

AsString() AsString() AsString() AsString()

Converts the RfcommServiceId to a string.

public : Platform::String AsString()
public string AsString()
Public Function AsString() As string
var string = rfcommServiceId.asString();
Returns
Platform::String string string string

Returns the string representation of the 128-bit service id.

Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)
Capabilities
bluetooth

FromShortId(UInt32) FromShortId(UInt32) FromShortId(UInt32) FromShortId(UInt32)

Creates a RfcommServiceId object from a 32-bit service id.

public : static RfcommServiceId FromShortId(unsigned int shortId)
public static RfcommServiceId FromShortId(UInt32 shortId)
Public Static Function FromShortId(shortId As UInt32) As RfcommServiceId
var rfcommServiceId = Windows.Devices.Bluetooth.Rfcomm.RfcommServiceId.fromShortId(shortId);
Parameters
shortId
unsigned int UInt32 UInt32 UInt32

The 32-bit service id.

Returns
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)
Capabilities
bluetooth

FromUuid(Guid) FromUuid(Guid) FromUuid(Guid) FromUuid(Guid)

Creates a RfcommServiceId object from a 128-bit service id.

public : static RfcommServiceId FromUuid(Platform::Guid uuid)
public static RfcommServiceId FromUuid(Guid uuid)
Public Static Function FromUuid(uuid As Guid) As RfcommServiceId
var rfcommServiceId = Windows.Devices.Bluetooth.Rfcomm.RfcommServiceId.fromUuid(uuid);
Parameters
uuid
Platform::Guid Guid Guid Guid

The 128-bit service id.

Returns
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)
Capabilities
bluetooth