This documentation is archived and is not being maintained.
DataBindingCollection.IsSynchronized Property
.NET Framework 1.1
Gets a value indicating whether the DataBindingCollection is synchronized (thread-safe).
[Visual Basic] Public Overridable ReadOnly Property IsSynchronized As Boolean _ Implements ICollection.IsSynchronized [C#] public virtual bool IsSynchronized {get;} [C++] public: __property virtual bool get_IsSynchronized(); [JScript] public function get IsSynchronized() : Boolean;
Property Value
true if the collection is synchronized; otherwise, false. The default is false.
Implements
Example
[Visual Basic, C#, C++] The following code example concatenates the value of the IsSynchronized property to a string, then writes the string to a file.
[Visual Basic] Dim dataBindingOutput4, dataBindingOutput5, dataBindingOutput6, dataBindingOutput7, dataBindingOutput8 As String dataBindingOutput4 = [String].Concat("The Count of the collection is ", myDataBindingCollection1.Count) dataBindingOutput5 = [String].Concat("The IsSynchronised property of the collection is ", myDataBindingCollection1.IsSynchronized, "-", dataBindingOutput4) dataBindingOutput6 = [String].Concat("The IsReadOnly property of the collection is ", myDataBindingCollection1.IsReadOnly, "-", dataBindingOutput5) WriteToFile(dataBindingOutput6) [C#] string dataBindingOutput4,dataBindingOutput5,dataBindingOutput6,dataBindingOutput7,dataBindingOutput8; dataBindingOutput4=String.Concat("The Count of the collection is ",myDataBindingCollection1.Count); dataBindingOutput5=String.Concat("The IsSynchronised property of the collection is ",myDataBindingCollection1.IsSynchronized,"-",dataBindingOutput4); dataBindingOutput6=String.Concat("The IsReadOnly property of the collection is ",myDataBindingCollection1.IsReadOnly,"-",dataBindingOutput5); WriteToFile(dataBindingOutput6); [C++] String* dataBindingOutput4; String* dataBindingOutput5; String* dataBindingOutput6; String* dataBindingOutput7; String* dataBindingOutput8; dataBindingOutput4=String::Concat(S"The Count of the collection is ", __box(myDataBindingCollection1->Count)); dataBindingOutput5=String::Concat(S"The IsSynchronised property of the collection is ", __box(myDataBindingCollection1->IsSynchronized), S"-", dataBindingOutput4); dataBindingOutput6=String::Concat(S"The IsReadOnly property of the collection is ", __box(myDataBindingCollection1->IsReadOnly), S"-", dataBindingOutput5); WriteToFile(dataBindingOutput6);
[JScript] No example is available for JScript. To view a Visual Basic, C#, or C++ example, click the Language Filter button
in the upper-left corner of the page.
Requirements
Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family
See Also
DataBindingCollection Class | DataBindingCollection Members | System.Web.UI Namespace
Show: