OpaqueDataDictionary.GetValue<T> Method (Microsoft.Xna.Framework.Content.Pipeline)

Get the value for the specified key

Namespace: Microsoft.Xna.Framework.Content.Pipeline
Assembly: MonoGame.Framework.Content.Pipeline (MonoGame.Framework.Content.Pipeline.dll 3.8.0.1082)
  • C#
  • VB
  • F#
public T GetValue<T>(
	string key, 
	T defaultValue
)

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.

Parameters

key
Type: System.String
defaultValue
Type: T

Return Value

Type: T
The item cast as T, or the default value if the item is not present in the dictonary.
Supported in:

    
 Windows DirectX Desktop
    
 Linux Desktop