ReadOnlyList<T> 구조
Represents a generic structure that exposes the read-only interface of a list while hides its mutable interface.
네임스페이스: Microsoft.SqlServer.Management.Sdk.Sfc
어셈블리: Microsoft.SqlServer.Management.Sdk.Sfc(Microsoft.SqlServer.Management.Sdk.Sfc.dll)
구문
‘선언
Public Structure ReadOnlyList(Of T) _
Implements IReadOnlyList(Of T), IReadOnlyCollection(Of T), _
IReadOnlyCollection, IEnumerable(Of T), IEnumerable
‘사용 방법
Dim instance As ReadOnlyList(Of T)
public struct ReadOnlyList<T> : IReadOnlyList<T>,
IReadOnlyCollection<T>, IReadOnlyCollection, IEnumerable<T>, IEnumerable
generic<typename T>
public value class ReadOnlyList : IReadOnlyList<T>,
IReadOnlyCollection<T>, IReadOnlyCollection, IEnumerable<T>, IEnumerable
[<SealedAttribute>]
type ReadOnlyList<'T> =
struct
interface IReadOnlyList<'T>
interface IReadOnlyCollection<'T>
interface IReadOnlyCollection
interface IEnumerable<'T>
interface IEnumerable
end
JScript는 제네릭 형식 및 메서드를 지원하지 않습니다.
유형 매개 변수
- T
The type of elements in the list.
ReadOnlyList<T> 유형에서 다음 멤버를 표시합니다.
생성자
이름 | 설명 | |
---|---|---|
![]() |
ReadOnlyList<T> | Initializes a new instance of the ReadOnlyList<T> class with the specified list. |
맨 위로 이동
속성
이름 | 설명 | |
---|---|---|
![]() |
Count | Gets the number of elements contained in the list. |
![]() |
Item | Gets the element at the specified index. |
맨 위로 이동
메서드
이름 | 설명 | |
---|---|---|
![]() |
Contains | Indicates whether the list contains a specific value. |
![]() |
CopyTo | Copies the elements of the list to an array, starting at a particular array index. |
![]() |
Equals | (ValueType에서 상속됨) |
![]() |
GetEnumerator | Returns an enumerator that iterates through the list. |
![]() |
GetHashCode | (ValueType에서 상속됨) |
![]() |
GetType | (Object에서 상속됨) |
![]() |
IndexOf | Determines the index of a specific item in the list. |
![]() |
ToString | (ValueType에서 상속됨) |
맨 위로 이동
연산자
이름 | 설명 | |
---|---|---|
![]() ![]() |
Implicit(List<T> to ReadOnlyList<T>) | Returns an implicit conversion from a list to a read only list. |
![]() ![]() |
Implicit(array<T[] to ReadOnlyList<T>) | Returns an implicit conversion from an array to a list. |
맨 위로 이동
명시적 인터페이스 구현
이름 | 설명 | |
---|---|---|
![]() ![]() |
IEnumerable.GetEnumerator | Returns an enumerator that iterates through the list. |
맨 위로 이동
스레드 보안
이 유형의 모든 공용 static(Visual Basic에서는 Shared) 멤버는 스레드로부터 안전합니다. 인스턴스 멤버는 스레드로부터의 안전성이 보장되지 않습니다.