MaterialContent.SetProperty Generic Method

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
    Name of the key being modified.
  • value
    Value being set.

See Also

Reference

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

Platforms

Windows XP SP2, Windows Vista