Condividi tramite


BulkObservableCollection<T>.AsReadOnly Method

Gets a read-only version of the collection.

Namespace:  Microsoft.VisualStudio.Language.Intellisense
Assembly:  Microsoft.VisualStudio.Language.Intellisense (in Microsoft.VisualStudio.Language.Intellisense.dll)

Syntax

'Dichiarazione
Public Function AsReadOnly As ReadOnlyObservableCollection(Of T)
public ReadOnlyObservableCollection<T> AsReadOnly()
public:
ReadOnlyObservableCollection<T>^ AsReadOnly()
member AsReadOnly : unit -> ReadOnlyObservableCollection<'T> 
public function AsReadOnly() : ReadOnlyObservableCollection<T>

Return Value

Type: System.Collections.ObjectModel.ReadOnlyObservableCollection<T>
A read-only version of the collection.

.NET Framework Security

See Also

Reference

BulkObservableCollection<T> Class

Microsoft.VisualStudio.Language.Intellisense Namespace