共用方式為


NetworkGamer.IsHost Property

Determines if the player is the host of the multiplayer session.

Namespace: Microsoft.Xna.Framework.Net
Assembly: Microsoft.Xna.Framework.Net (in microsoft.xna.framework.net.dll)

Syntax

public bool IsHost { get; }

Property Value

true if the player is the host; false otherwise.

See Also

Reference

NetworkGamer Class
NetworkGamer Members
Microsoft.Xna.Framework.Net Namespace

Platforms

Xbox 360, Windows 7, Windows Vista, Windows XP