MultiplayerSession Constructor (utility::string_t, utility::string_t, utility::string_t, std::unordered_map<utility::string_t,web::json::value>&, std::unordered_map<utility::string_t,web::json::value>&, std::unordered_map<utility::string_t,web::json::value>&, std::vector<SessionMember>&) [Xbox Live Compute]

Creates an instance of MultiplayerSession with the specified values.

Syntax

public:
MultiplayerSession(
         utility::string_t serviceConfigId,
         utility::string_t sessionTemplateName,
         utility::string_t sessionName,
         std::unordered_map<utility::string_t,web::json::value>& customConstants,
         std::unordered_map<utility::string_t,web::json::value>& systemConstants,
         std::unordered_map<utility::string_t,web::json::value>& serverConstants,
         std::vector<SessionMember>& members
)  

Parameters

serviceConfigId
Type: utility::string_t 

[in] The service configuration ID that is specific to the title.

sessionTemplateName
Type: utility::string_t 

[in] The name of the template for the session.

sessionName
Type: utility::string_t 

[in] The name of the session.

customConstants
Type: std::unordered_map<utility::string_t,web::json::value>& 

[in] Collection of custom constants. Each property is keyed by the field name and the value can only be one of these types: string, int32, double, or Windows.Data.Json.JsonObject.

systemConstants
Type: std::unordered_map<utility::string_t,web::json::value>& 

[in] Collection of system constants. Each property is keyed by the field name and the value can only be one of these types: string, int32, double, or Windows.Data.Json.JsonObject.

serverConstants
Type: std::unordered_map<utility::string_t,web::json::value>& 

[in] Collection of server constants. Each property is keyed by the field name and the value can only be one of these types: string, int32, double, or Windows.Data.Json.JsonObject.

members
Type: std::vector<SessionMember>& 

[in] A collection of members that are in the session or entering the session together.

Requirements

Header: Declared in MultiplayerSession.h.

Library: Use GSDK110.lib (VS 2012) or GSDK100.lib (VS 2010).

See also

Reference

MultiplayerSession

MultiplayerSession Members