ICollection.Count Property
Collapse the table of content
Expand the table of content

BindingContext.ICollection.Count Property

 

This API supports the product infrastructure and is not intended to be used directly from your code.

Gets the total number of CurrencyManager objects managed by the BindingContext.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

int ICollection.Count { get; }

Property Value

Type: System.Int32

The number of data sources managed by the BindingContext.

The following code example returns the number of CurrencyManager objects managed by the BindingContext.

private void PrintCount(){
   Console.WriteLine("BindingContext.Count " + ((ICollection) this.BindingContext).Count);
} 

.NET Framework
Available since 2.0
Return to top
Show:
© 2016 Microsoft