Share via


HourOfDayToEnd Property

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

Gets or sets the value indicating when this ad should stop running each day.

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

Syntax

'Declaration
Public Property HourOfDayToEnd As Integer
'Usage
Dim instance As Advertisement
Dim value As Integer

value = instance.HourOfDayToEnd

instance.HourOfDayToEnd = value
public int HourOfDayToEnd { get; set; }
public:
property int HourOfDayToEnd {
    int get ();
    void set (int value);
}
public function get HourOfDayToEnd () : int
public function set HourOfDayToEnd (value : int)

Property Value

Type: System..::.Int32
The value from 0 to 23 is the hour of day at which this ad should stop running each day.

Exceptions

Exception Condition
MinimumValueValidationException

The value was less than 0.

MaximumValueValidationException

The value is greater than 23.

Remarks

Specifies at what hour the Ad should stop running. A value 0-23, is expressed in server local time. Default value is 0.

Permissions

See Also

Reference

Advertisement Class

Advertisement Members

Microsoft.CommerceServer.Marketing Namespace