ServiceModelExtensionCollectionElement<TServiceModelExtensionElement>.ICollection<TServiceModelExtensionElement>.IsReadOnly 属性

定义

获取一个值,该值指示该 ServiceModelExtensionCollectionElement<TServiceModelExtensionElement> 是否为只读的。

property bool System::Collections::Generic::ICollection<TServiceModelExtensionElement>::IsReadOnly { bool get(); };
bool System.Collections.Generic.ICollection<TServiceModelExtensionElement>.IsReadOnly { get; }
member this.System.Collections.Generic.ICollection<TServiceModelExtensionElement>.IsReadOnly : bool
 ReadOnly Property IsReadOnly As Boolean Implements ICollection(Of TServiceModelExtensionElement).IsReadOnly

属性值

Boolean

如果 true 是只读的,则为 ServiceModelExtensionCollectionElement<TServiceModelExtensionElement>;否则为 false

实现

注解

在创建只读集合后,该集合不允许添加、移除或修改元素。

适用于