PropertyDictionary.GetValueInt32 Method
Gets the value of the property with the specified key, as a System.Int32.
Syntax
'Declaration
Public Function GetValueInt32 ( _
key As String _
) As Integer
public int GetValueInt32 (
string key
)
public:
int GetValueInt32(
String key
)
Parameters
- key
Type: String
The key to search for in the PropertyDictionary.
Return Value
Type: Int32
The value of the property associated with the specified key, as an Int32.
Remarks
If the value that corresponds to the specified key cannot be represented by an Int32, an InvalidCastException will be thrown. A KeyNotFoundException will be thrown if the key does not exist.
Requirements
Namespace: Microsoft.Xna.Framework.GamerServices
Assembly: Microsoft.Xna.Framework.GamerServices (in microsoft.xna.framework.gamerservices.dll)
See Also
Reference
PropertyDictionary Class
PropertyDictionary Members
Microsoft.Xna.Framework.GamerServices Namespace
Platforms
Windows Phone