Visual Basic (Declaration) | |
---|---|
Public ReadOnly Property IsReadOnly As Boolean |
Visual Basic (Usage) | Copy Code |
---|---|
Dim instance As CaptureSubTypes Dim value As Boolean value = instance.IsReadOnly |
C# | |
---|---|
public bool IsReadOnly {get;} |
Property Value
true if the collection is read-only; false, otherwise.A collection that is read-only does not allow the addition, removal, or modification of elements after the collection is created.
Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7