共用方式為


QualityOfService.BytesPerSecondDownstream Property

Gets an estimate of the available downstream network bandwidth from the session host to this machine, measured in bytes per second.

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

Syntax

public int BytesPerSecondDownstream { get; }

Property Value

An estimate of the available downstream network bandwidth from the session host to this machine, measured in bytes per second. Will return zero if the query has not yet completed. You can check if the query is complete using IsAvailable.

Remarks

The bandwidth algorithm used for BytesPerSecondUpstream and BytesPerSecondDownstream gives only an estimate of bandwidth and there is a possibility it may not accurately reflect the true bandwidth provided by the player's internet service provider. To avoid inaccurately representing the true bandwidth to the player, games should avoid displaying BytesPerSecondUpstream and BytesPerSecondDownstream.

Even though the results of these properties provide only rough estimates, the values can be useful for relative comparisons or host stack ranking. For instance, these properties might be used for choosing a host gaming machine with a bandwidth twice as large as another gaming machine or sorting a list based on bandwidth.

See Also

Reference

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

Platforms

Xbox 360, Windows XP SP2, Windows Vista, Zune