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
'Declaration
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: ReadOnlyObservableCollection<T>
A read-only version of the collection.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.