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.

Syntax

'Declaration
Protected Sub SetProperty(Of T) ( _
         key As String, _
         value As T _
)
protected void SetProperty<T> (
         string key,
         T value
)
protected:
generic<typename T>
void SetProperty(
         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.

Requirements

Namespace: Microsoft.Xna.Framework.Content.Pipeline.Graphics

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

See Also

Reference

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

Platforms

Windows 7, Windows Vista, Windows XP