OpaqueDataDictionary.GetValue Generic Method
Gets the value of the specified key/value pair of the asset.
Namespace: Microsoft.Xna.Framework.Content.Pipeline
Assembly: Microsoft.Xna.Framework.Content.Pipeline (in microsoft.xna.framework.content.pipeline.dll)
Syntax
public T GetValue<T> (
string key,
T defaultValue
)
Type Parameters
- T
Parameters
- key
The name of the key. - defaultValue
The value to return if the key cannot be found. This can be null for reference types, 0 for primitive types, and a zero-filled structure for structure types.
Return Value
The value of the retrieved opaque data.
Remarks
GetValue looks only for values of a specific type. If the entry is of a different type, the defaultvalue is returned.
See Also
Reference
OpaqueDataDictionary Class
OpaqueDataDictionary Members
Microsoft.Xna.Framework.Content.Pipeline Namespace
Platforms
Windows XP SP2, Windows Vista