共用方式為


GamerPrivileges.AllowCommunication Property

Checks if this gamer is allowed to send and receive communications using voice, text, messaging, or game invites.

Namespace: Microsoft.Xna.Framework.GamerServices
Assembly: Microsoft.Xna.Framework.GamerServices (in microsoft.xna.framework.gamerservices.dll)

Syntax

public GamerPrivilegeSetting AllowCommunication { get; }

Property Value

A value indicating the communication privilege setting for the gamer: either Blocked, Everyone, or FriendsOnly.

Remarks

Titles do not need to do anything special to disable voice communication on Xbox 360 if this privilege is set to Blocked—the XNA Framework will automatically block communication.

See Also

Reference

SignedInGamer.Privileges Property
Guide.BeginShowMessageBox Method
Guide.ShowComposeMessage Method
Guide.ShowGameInvite Method
LocalNetworkGamer.EnableSendVoice Method
GamerPrivileges Class
GamerPrivileges Members
Microsoft.Xna.Framework.GamerServices Namespace

Platforms

Xbox 360, Windows 7, Windows Vista, Windows XP