RfcommServiceId
RfcommServiceId
RfcommServiceId
RfcommServiceId
Class
Definition
Represents an RFCOMM service ID.
public : sealed class RfcommServiceId : IRfcommServiceIdpublic sealed class RfcommServiceId : IRfcommServiceIdPublic NotInheritable Class RfcommServiceId Implements IRfcommServiceId// You can use this class in JavaScript.
- Attributes
| 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 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// You can use this property in JavaScript.
The RfcommServiceId object that represents the service id for the Generic File Transfer service.
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// You can use this property in JavaScript.
The RfcommServiceId object that represents the service id for the Obex File Transfer service.
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// You can use this property in JavaScript.
The RfcommServiceId object that represents the service id for the OBEX Object Push service.
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// You can use this property in JavaScript.
The RfcommServiceId object that represents the service id for the Phone Book Access (PCE) service.
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// You can use this property in JavaScript.
The RfcommServiceId object that represents the service id for the Phone Book Access (PSE) service.
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// You can use this property in JavaScript.
The RfcommServiceId object that represents the service id for the Serial Port service.
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// You can use this method in JavaScript.
Returns the 32-bit service id if the RfcommServiceId represents a standardized service.
AsString() AsString() AsString() AsString()
Converts the RfcommServiceId to a string.
public : PlatForm::String AsString()public string AsString()Public Function AsString() As string// You can use this method in JavaScript.
Returns the string representation of the 128-bit service id.
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// You can use this method in JavaScript.
- shortId
- unsigned int UInt32 UInt32 UInt32
The 32-bit service id.
The RfcommServiceId object.
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// You can use this method in JavaScript.
- uuid
- PlatForm::Guid Guid Guid Guid
The 128-bit service id.
The RfcommServiceId object.