TechNet
Export (0) Print
Expand All

ReadOnlyList<T> Structure

 

Represents a generic structure that exposes the read-only interface of a list while hides its mutable interface.

Namespace:   Microsoft.SqlServer.Management.Sdk.Sfc
Assembly:  Microsoft.SqlServer.Management.Sdk.Sfc (in Microsoft.SqlServer.Management.Sdk.Sfc.dll)

[DefaultMemberAttribute("Item")]
public struct ReadOnlyList<T> : IReadOnlyList<T>, IReadOnlyCollection<T>, 
	IReadOnlyCollection, IEnumerable<T>, IEnumerable

Type Parameters

T

The type of elements in the list.

NameDescription
System_CAPS_pubmethodReadOnlyList<T>(IList<T>)

Initializes a new instance of the ReadOnlyList<T> class with the specified list.

NameDescription
System_CAPS_pubpropertyCount

Gets the number of elements contained in the list.

System_CAPS_pubpropertyItem[Int32]

Gets the element at the specified index.

NameDescription
System_CAPS_pubmethodContains(T)

Indicates whether the list contains a specific value.

System_CAPS_pubmethodCopyTo(T[], Int32)

Copies the elements of the list to an array, starting at a particular array index.

System_CAPS_pubmethodEquals(Object)

(Inherited from ValueType.)

System_CAPS_pubmethodGetEnumerator()

Returns an enumerator that iterates through the list.

System_CAPS_pubmethodGetHashCode()

(Inherited from ValueType.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodIndexOf(T)

Determines the index of a specific item in the list.

System_CAPS_pubmethodToString()

(Inherited from ValueType.)

NameDescription
System_CAPS_puboperatorSystem_CAPS_staticImplicit(T[] to ReadOnlyList<T>)

Returns an implicit conversion from an array to a list.

System_CAPS_puboperatorSystem_CAPS_staticImplicit(List<T> to ReadOnlyList<T>)

Returns an implicit conversion from a list to a read only list.

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_privmethodIEnumerable.GetEnumerator()

Returns an enumerator that iterates through the list.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2016 Microsoft