IsSynchronized Property
- Explicit
- Implements
System.explicitly: cast to the interface to use it.Collections. ICollection
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. Core. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesCore. dll
- Also in
TXTextControl.asTextControl. ASP. SDK TXTextControl.dll
Description
Returns true if the collection is designed to be thread safe, otherwise, it returns false.
Syntax
The type implements this member of System.Collections.ICollection explicitly: code reaches it by casting to the interface, as in ((ICollection)value).IsSynchronized.
bool ICollection.IsSynchronized { get; }Private ReadOnly Property IsSynchronized As Boolean Implements ICollection.IsSynchronizedExamples
The following example works with comments in the current document by using CommentCollection.issynchronized.
CommentCollection commentCollection = textControl.Comments;
textControl.Text = "Payment is due within 30 days.";
textControl.Select(0, textControl.Text.Length);
commentCollection.Add(new CommentedText("Verify the payment term."));
ICollection collection = commentCollection;
var value = collection.IsSynchronized;Dim commentCollection As CommentCollection = textControl.Comments
textControl.Text = "Payment is due within 30 days."
textControl.Select(0, textControl.Text.Length)
commentCollection.Add(New CommentedText("Verify the payment term."))
Dim collection As ICollection = commentCollection
Dim value = collection.IsSynchronizedLimitations
Read only.