PropertyDictionary.SetValue Method (String, DateTime)
Sets the value of the property with the specified key, as a System.DateTime.
Syntax
'Declaration
Public Sub SetValue ( _
key As String, _
value As DateTimeOffset _
)
public void SetValue (
string key,
DateTimeOffset value
)
public:
void SetValue(
String key,
DateTimeOffset value
)
Parameters
- key
Type: String
The key to search for in the PropertyDictionary. - value
Type: DateTime
The value of the property to set for the specified key, as a DateTime.
Remarks
If the value that corresponds to the specified key cannot be represented by a DateTime, 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