RfcommServiceId RfcommServiceId RfcommServiceId RfcommServiceId Class

Definition

Represents an RFCOMM service ID.

public sealed class RfcommServiceIdpublic sealed class RfcommServiceIdPublic NotInheritable Class RfcommServiceIdpublic sealed class RfcommServiceId
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

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 RfcommServiceIdpublic static RfcommServiceId GenericFileTransfer { get; }
Value
RfcommServiceId RfcommServiceId RfcommServiceId RfcommServiceId

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

Attributes
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

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 RfcommServiceIdpublic static RfcommServiceId ObexFileTransfer { get; }
Value
RfcommServiceId RfcommServiceId RfcommServiceId RfcommServiceId

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

Attributes
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

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 RfcommServiceIdpublic static RfcommServiceId ObexObjectPush { get; }
Value
RfcommServiceId RfcommServiceId RfcommServiceId RfcommServiceId

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

Attributes
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

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 RfcommServiceIdpublic static RfcommServiceId PhoneBookAccessPce { get; }
Value
RfcommServiceId RfcommServiceId RfcommServiceId RfcommServiceId

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

Attributes
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

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 RfcommServiceIdpublic static RfcommServiceId PhoneBookAccessPse { get; }
Value
RfcommServiceId RfcommServiceId RfcommServiceId RfcommServiceId

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

Attributes
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

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 RfcommServiceIdpublic static RfcommServiceId SerialPort { get; }
Value
RfcommServiceId RfcommServiceId RfcommServiceId RfcommServiceId

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

Attributes
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Uuid Uuid Uuid Uuid

Retrieves the 128-bit service id.

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

The 128-bit service id.

Attributes
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Methods

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

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

public uint AsShortId()public uint AsShortId()Public Function AsShortId() As uintpublic uint AsShortId()
Returns
uint uint uint uint

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

Attributes
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

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

Converts the RfcommServiceId to a string.

public string AsString()public string AsString()Public Function AsString() As stringpublic string AsString()
Returns
string string string string

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

Attributes
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

FromShortId(UInt32) 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 RfcommServiceIdpublic static RfcommServiceId FromShortId(UInt32 shortId)
Parameters
shortId
System.UInt32 System.UInt32 System.UInt32 System.UInt32

The 32-bit service id.

Returns
Attributes
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

FromUuid(Guid) 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 RfcommServiceIdpublic static RfcommServiceId FromUuid(Guid uuid)
Parameters
uuid
System.Guid System.Guid System.Guid System.Guid

The 128-bit service id.

Returns
Attributes
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)