A Sandcastle Documented Class Library

# ScheduleRuleData NumberOfOccurrences Property

Gets or sets the number of occurrences for the schedule.

Namespace: Dundas.BI.WebApi.Models
Assembly: Dundas.BI.WebApi (in Dundas.BI.WebApi.dll) Version: 2.0.0.0 (10.0.0.1002)
Syntax
C#
VB
C++
F#
Copy

    [DataMemberAttribute(Name = "numberOfOccurrences", EmitDefaultValue = false)]
    public int? NumberOfOccurrences { get; set; }

    <DataMemberAttribute(Name := "numberOfOccurrences", EmitDefaultValue := false)>
    Public Property NumberOfOccurrences As Integer?
    	Get
    	Set

    public:
    [DataMemberAttribute(Name = L"numberOfOccurrences", EmitDefaultValue = false)]
    property Nullable<int> NumberOfOccurrences {
    	Nullable<int> get ();
    	void set (Nullable<int> value);
    }

    [<DataMemberAttribute(Name = "numberOfOccurrences", EmitDefaultValue = false)>]
    member NumberOfOccurrences : Nullable<int> with get, set

#### Property Value

Type: Nullable
Int32
The number of occurrences.
Exceptions

Exception | Condition
--- | ---
ArgumentOutOfRangeException | The value is less than or equal to 0.

Remarks
A schedule can be optionally set to run a specific number of times. When a schedule is created, this property is set to 1 by default. This property is only considered when EndPolicy is set to SpecificNumberOfOccurrences.
See Also

#### Reference

ScheduleRuleData Class
Dundas.BI.WebApi.Models Namespace
ScheduleRule
EndPolicy