Share via


PresentParameters.MultiSampleQuality Property (Microsoft.DirectX.Direct3D)

Retrieves or sets the multisample quality level.

Definition

Visual Basic Public Property MultiSampleQuality As Integer
C# public int MultiSampleQuality { get; set; }
C++ public:
property int MultiSampleQuality {
        int get();
        void set(int value);
}
JScript public function get MultiSampleQuality() : int
public function set MultiSampleQuality(int);

Property Value

System.Int32
Multisample quality level.

This property is read/write. 

Remarks

The valid range is between 0 and one less than the level returned by the param_Int32R_qualityLevels parameter used by Manager.CheckDeviceMultiSampleType. Passing a larger value causes an InvalidCallException. Paired values of render targets or depth stencil surfaces must match MultiSample.

Exceptions

InvalidCallException

The method call is invalid. For example, a method's parameter might contain an invalid value.