Partager via


DefaultDateTimeValue Field

For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.

Represents an undefined DateTime value for DateTime members on Marketing System entities.

Namespace:  Microsoft.CommerceServer.Marketing
Assembly:  Microsoft.CommerceServer.Marketing.CrossTierTypes (in Microsoft.CommerceServer.Marketing.CrossTierTypes.dll)

Syntax

'Declaration
Public Shared ReadOnly DefaultDateTimeValue As DateTime
'Usage
Dim value As DateTime

value = MarketingContext.DefaultDateTimeValue
public static readonly DateTime DefaultDateTimeValue
public:
static initonly DateTime DefaultDateTimeValue
public static final var DefaultDateTimeValue : DateTime

Remarks

Since System.DateTime is a value type in the .NET Framework, all members that represent System.DateTime values must be set to some valid value, even if that System.DateTime is "undefined" or not set. In cases where the Marketing System exposes a System.DateTime whose value is effectively undefined, the DefaultDateTimeValue is returned. An example of this is the DeletedDate value of the Marketing System entities. If an entity is not deleted, then the DeletedDate property will return this DefaultDateTimeValue property value.

The value returned is Jan 1, 1900 GMT, translated to a local time value since all System.DateTime values exposed through the Marketing System API are returned in local time.

Permissions

See Also

Reference

MarketingContext Class

MarketingContext Members

Microsoft.CommerceServer.Marketing Namespace