IReadOnlyRegionEdit.RemoveReadOnlyRegion Method
Removes the read-only region from the list of read-only regions in this buffer.
Namespace: Microsoft.VisualStudio.Text
Assembly: Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
Syntax
'Declaração
Sub RemoveReadOnlyRegion ( _
readOnlyRegion As IReadOnlyRegion _
)
void RemoveReadOnlyRegion(
IReadOnlyRegion readOnlyRegion
)
void RemoveReadOnlyRegion(
IReadOnlyRegion^ readOnlyRegion
)
abstract RemoveReadOnlyRegion :
readOnlyRegion:IReadOnlyRegion -> unit
function RemoveReadOnlyRegion(
readOnlyRegion : IReadOnlyRegion
)
Parameters
- readOnlyRegion
Type: Microsoft.VisualStudio.Text.IReadOnlyRegion
The read-only region to remove.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | readOnlyRegion is nulla null reference (Nothing in Visual Basic). |
InvalidOperationException | readOnlyRegion was created on another buffer. |
Remarks
Removing a read-only region that has already been removed does nothing.
.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.