Creates a SecureDeviceAddress object from its serialized byte array.
public:
static SecureDeviceAddress^ FromBytes(
Array<unsigned char>^ bytes
)
bytes
Type: unsigned char
A pointer to the newly created SecureDeviceAddress object.
Type: SecureDeviceAddress
The pointer to the serialized byte array.
Note that the common usage scenario for FromBytes is that the contents of the bytes buffer comes from a remote device. It’s always a good idea to validate such externally-sourced data in order to reduce your security risks, and to handle WinRT exceptions from FromBytes with the possibility in mind that the data might have been manipulated in an attempt to compromise your title’s security.
This method creates an Xbox Secure Device Address (SecureDeviceAddress) object representing the authenticated node described in the specified serialized buffer byte array.
SecureDeviceAddresses are used to create Xbox Secure Device Associations between peers that enable socket-based communication via the SecureDeviceAssociationTemplate.CreateAssociationAsync function.
Namespace: Windows.Xbox.Networking
Metadata: windows.winmd