Adds a DateTime value into the SerializationInfo store.
public void AddValue(
The name to associate with the value, so it can be deserialized later.
The DateTime value to serialize.
The name parameter is null.
A value has already been associated with name.
If two values are added with names that differ only by case, no exception will be thrown, which is not a recommended practice. However, adding two values with the exact same name will cause the SerializationException to be thrown.