MaterialContent.SetProperty Generic Method

Note

This generic method is available only when developing for Windows.

Sets a value in the contained OpaqueDataDictionary object.

If null is passed, the value is removed.

Namespace: Microsoft.Xna.Framework.Content.Pipeline.Graphics
Assembly: Microsoft.Xna.Framework.Content.Pipeline (in microsoft.xna.framework.content.pipeline.dll)

Syntax

protected void SetProperty<T> (
         string key,
         T value
)

Type Parameters

  • T
    Type of the element being set.

Parameters

  • key
    Type: String
    Name of the key being modified.
  • value
    Type: T
    Value being set.

See Also

Reference

MaterialContent Class
MaterialContent Members
Microsoft.Xna.Framework.Content.Pipeline.Graphics Namespace

Platforms

Windows 7, Windows Vista, Windows XP