共用方式為


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

'宣告
Sub RemoveReadOnlyRegion ( _
    readOnlyRegion As IReadOnlyRegion _
)
void RemoveReadOnlyRegion(
    IReadOnlyRegion readOnlyRegion
)
void RemoveReadOnlyRegion(
    IReadOnlyRegion^ readOnlyRegion
)
abstract RemoveReadOnlyRegion : 
        readOnlyRegion:IReadOnlyRegion -> unit 
function RemoveReadOnlyRegion(
    readOnlyRegion : IReadOnlyRegion
)

Parameters

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

See Also

Reference

IReadOnlyRegionEdit Interface

Microsoft.VisualStudio.Text Namespace