SecureDeviceAddress.FromBase64String Method

Creates a SecureDeviceAddress object from a Base64-encoded string.

Use FromBase64String to construct a SecureDeviceAddress object from the Base64-encoded string returned by SecureDeviceAddress::GetBase64String. Xbox Live services like the match making service and the multiplayer session directory use this encoding when returning addresses of other devices.

Syntax

public:
static SecureDeviceAddress^ FromBase64String(
         String^ base64String
)  

Parameters

base64String
Type: String 

 A Base64-encoded string representing a SecureDeviceAddress.

Return value

Type: SecureDeviceAddress 

The SecureDeviceAddress represented by base64String.

Remarks

Note that the common usage scenario for FromBase64String is that the contents of the base64String argument 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 FromBase64String with the possibility in mind that the data might have been manipulated in an attempt to compromise your title’s security.

Requirements

Namespace: Windows.Xbox.Networking

Metadata: windows.winmd

See also

Reference

SecureDeviceAddress Class

SecureDeviceAddress Members

Windows.Xbox.Networking Namespace