Udostępnij za pośrednictwem


HourOfDayToStart 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 start running each day.

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

Syntax

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

value = instance.HourOfDayToStart

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

Property Value

Type: System..::.Int32
The value from 0 to 23 is the hour of day at which this ad should start 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