SecureDeviceAddress.FromBytes Method

Creates a SecureDeviceAddress object from its serialized byte array.

Syntax

public:
static SecureDeviceAddress^ FromBytes(
         Array<unsigned char>^ bytes
)  

Parameters

bytes
Type: unsigned char 

 A pointer to the newly created SecureDeviceAddress object.

Return value

Type: SecureDeviceAddress 

The pointer to the serialized byte array.

Remarks

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.

Requirements

Namespace: Windows.Xbox.Networking

Metadata: windows.winmd

See also

Reference

SecureDeviceAddress Class

SecureDeviceAddress Members

Windows.Xbox.Networking Namespace