Partager via


Device.Material Property

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Gets or sets the current material properties for the device.

Namespace:  Microsoft.WindowsMobile.DirectX.Direct3D
Assembly:  Microsoft.WindowsMobile.DirectX (in Microsoft.WindowsMobile.DirectX.dll)

Syntax

'Declaration
Public Property Material As Material
    Get
    Set
'Usage
Dim instance As Device
Dim value As Material

value = instance.Material

instance.Material = value
public Material Material { get; set; }
public:
property Material Material {
    Material get ();
    void set (Material value);
}
member Material : Material with get, set

Property Value

Type: Microsoft.WindowsMobile.DirectX.Direct3D.Material
A Material object that represents the current material properties to get or the material properties to set.

Exceptions

Exception Condition
InvalidCallException

Properties of a Material structure are invalid.

.NET Framework Security

Platforms

Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Version Information

.NET Compact Framework

Supported in: 3.5, 2.0

See Also

Reference

Device Class

Device Members

Microsoft.WindowsMobile.DirectX.Direct3D Namespace