Edit

Share via


MultiplayerRoleInfo Class

Definition

Represents role info for a multiplayer role.

[Windows.Foundation.Metadata.Activatable(1)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Version(1)]
public sealed class MultiplayerRoleInfo
type MultiplayerRoleInfo = class
    interface __IMultiplayerRoleInfoPublicNonVirtuals
Public NotInheritable Class MultiplayerRoleInfo
Inheritance
MultiplayerRoleInfo
Attributes
Windows.Foundation.Metadata.ActivatableAttribute Windows.Foundation.Metadata.MarshalingBehaviorAttribute Windows.Foundation.Metadata.ThreadingAttribute Windows.Foundation.Metadata.VersionAttribute

Constructors

MultiplayerRoleInfo()

Creates a MultiplayerRoleInfo object.

Properties

MaxMembersCount

Maximum number of slots available for this role. Note: Only the session owner can modify role settings and only those that are multiplayer_role_type::mutable_role_settings() In your session template, you also need to set 'hasOwners' capability and 'ownerManaged' to true for the specific role type that you want to modify the mutable_role_setting off.

MembersCount

Number of slots occupied for this role.

MemberXboxUserIds

Member XboxUserIds currently assigned for this role.

TargetCount

Number of target slots assigned for this role. Note: Only the session owner can modify role settings and only those that are multiplayer_role_type::mutable_role_settings() In your session template, you also need to set 'hasOwners' capability and 'ownerManaged' to true for the specific role type that you want to modify the mutable_role_setting off.

Applies to