Share via


MaterialContent.GetValueTypeProperty Generic Method

Note

This generic method is available only when developing for Windows.

Gets a value type from the OpaqueDataDictionary collection.

Syntax

'Declaration
Protected Function GetValueTypeProperty(Of T As ValueType) ( _
         key As String _
) As Nullable(Of T) 
protected Nullable<T> GetValueTypeProperty<T> (
         string key
) where T : ValueType
protected:
generic<typename T> where T : ValueType
Nullable<T> GetValueTypeProperty(
         String key
)

Type Parameters

  • T
    Type of the value being retrieved.

Parameters

  • key
    Type: String
    Key of the value type being retrieved.

Return Value

Type: Nullable<T>
Index of the value type beng retrieved.

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