Rfcomm​Service​Id Rfcomm​Service​Id Rfcomm​Service​Id Class

Definition

Represents an RFCOMM service ID.

public sealed class RfcommServiceId : IRfcommServiceIdpublic sealed class RfcommServiceId : IRfcommServiceIdPublic NotInheritable Class RfcommServiceId Implements IRfcommServiceId
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)

Properties

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
Value
RfcommServiceId RfcommServiceId RfcommServiceId

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

Attributes

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
Value
RfcommServiceId RfcommServiceId RfcommServiceId

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

Attributes

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
Value
RfcommServiceId RfcommServiceId RfcommServiceId

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

Attributes

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
Value
RfcommServiceId RfcommServiceId RfcommServiceId

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

Attributes

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
Value
RfcommServiceId RfcommServiceId RfcommServiceId

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

Attributes

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
Value
RfcommServiceId RfcommServiceId RfcommServiceId

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

Attributes

Uuid Uuid Uuid

Retrieves the 128-bit service id.

public PlatForm::Guid Uuid { get; }public Guid Uuid { get; }Public ReadOnly Property Uuid As Guid
Value
System.Guid System.Guid System.Guid

The 128-bit service id.

Attributes

Methods

AsShortId() AsShortId() AsShortId()

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

public unsigned short AsShortId()public uint AsShortId()Public Function AsShortId() As uint
Returns
uint uint uint

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

Attributes

AsString() AsString() AsString()

Converts the RfcommServiceId to a string.

public PlatForm::String AsString()public string AsString()Public Function AsString() As string
Returns
string string string

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

Attributes

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

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

public static RfcommServiceId FromShortId(UInt32 shortId)public static RfcommServiceId FromShortId(UInt32 shortId)Public Static Function FromShortId(shortId As UInt32) As RfcommServiceId
Parameters
shortId
System.UInt32 System.UInt32 System.UInt32

The 32-bit service id.

Returns

The RfcommServiceId object.

Attributes

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

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

public static RfcommServiceId FromUuid(Guid uuid)public static RfcommServiceId FromUuid(Guid uuid)Public Static Function FromUuid(uuid As Guid) As RfcommServiceId
Parameters
uuid
System.Guid System.Guid System.Guid

The 128-bit service id.

Returns

The RfcommServiceId object.

Attributes