| Visual Basic (Declaration) | |
|---|---|
Public Property Limit As String  | |
| Visual Basic (Usage) |  Copy Code | 
|---|---|
 | |
| C# | |
|---|---|
public string Limit {get; set;}  | |
| C# |  Copy Code | 
|---|---|
de.Limit="3"; | |
| Visual Basic |  Copy Code | 
|---|---|
de.Limit="3" | |
If DateGrouping is used, limit has no effect. In such a case, StartDate and EndDate must be used to limit the generated element count.
                See Getting Started > Tutorials > Data Engine.