IDictionary.IsReadOnly 속성
정의
IDictionary 개체가 읽기 전용인지 여부를 나타내는 값을 가져옵니다.Gets a value indicating whether the IDictionary object is read-only.
public:
property bool IsReadOnly { bool get(); };
public bool IsReadOnly { get; }
member this.IsReadOnly : bool
Public ReadOnly Property IsReadOnly As Boolean
속성 값
IDictionary 개체가 읽기 전용이면 true
이고, 그렇지 않으면 false
입니다.true
if the IDictionary object is read-only; otherwise, false
.
예제
다음 코드 예제에서는 속성을 구현 하는 방법을 보여 줍니다 IsReadOnly .The following code example demonstrates how to implement the IsReadOnly property. 이 코드 예제는에 대해 제공 된 큰 예제의 일부는 IDictionary 클래스입니다.This code example is part of a larger example provided for the IDictionary class.
public:
property virtual bool IsReadOnly
{
bool get()
{
return false;
}
}
public bool IsReadOnly { get { return false; } }
Public ReadOnly Property IsReadOnly() As Boolean Implements IDictionary.IsReadOnly
Get
Return False
End Get
End Property
설명
읽기 전용 컬렉션에서는 컬렉션을 만든 다음에 요소를 추가, 제거 또는 수정할 수 없습니다.A collection that is read-only does not allow the addition, removal, or modification of elements after the collection is created.