RfcommServiceId RfcommServiceId RfcommServiceId RfcommServiceId Class

Represents an RFCOMM service ID.

Syntax

Declaration

public sealed class RfcommServiceIdpublic sealed class RfcommServiceIdPublic NotInheritable Class RfcommServiceId

Properties summary

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

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

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

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

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

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

Retrieves the 128-bit service id.

Methods summary

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

Converts the RfcommServiceId to a string.

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

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

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

    Property Value

  • 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

    Property Value

  • 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

    Property Value

  • 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

    Property Value

  • 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

    Property Value

  • 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

    Property Value

  • Uuid
    Uuid
    Uuid
    Uuid

    Retrieves the 128-bit service id.

    public Guid Uuid { get; }public Guid Uuid { get; }Public ReadOnly Property Uuid As Guid

    Property Value

    • System.Guid
      System.Guid
      System.Guid
      System.Guid

      The 128-bit service id.

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 uint

    Returns

    • uint
      uint
      uint
      uint

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

  • AsString()
    AsString()
    AsString()
    AsString()

    Converts the RfcommServiceId to a string.

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

    Returns

    • string
      string
      string
      string

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

  • FromShortId(System.UInt32)
    FromShortId(System.UInt32)
    FromShortId(System.UInt32)
    FromShortId(System.UInt32)

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

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

    Parameters

    • shortId
      System.UInt32
      System.UInt32
      System.UInt32
      System.UInt32

      The 32-bit service id.

    Returns

  • FromUuid(System.Guid)
    FromUuid(System.Guid)
    FromUuid(System.Guid)
    FromUuid(System.Guid)

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

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

    Parameters

    • uuid
      System.Guid
      System.Guid
      System.Guid
      System.Guid

      The 128-bit service id.

    Returns

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Attributes

Windows.Foundation.Metadata.MarshalingBehaviorAttribute
Windows.Foundation.Metadata.ThreadingAttribute
Windows.Foundation.Metadata.DualApiPartitionAttribute
Windows.Foundation.Metadata.StaticAttribute
Windows.Foundation.Metadata.ContractVersionAttribute

Details

Assembly

Windows.Devices.Bluetooth.Rfcomm.dll