从此缓冲区的只读区域列表中移除只读区域。
命名空间: Microsoft.VisualStudio.Text
程序集: Microsoft.VisualStudio.Text.Data(在 Microsoft.VisualStudio.Text.Data.dll 中)
语法
声明
Sub RemoveReadOnlyRegion ( _
readOnlyRegion As IReadOnlyRegion _
)
void RemoveReadOnlyRegion(
IReadOnlyRegion readOnlyRegion
)
void RemoveReadOnlyRegion(
IReadOnlyRegion^ readOnlyRegion
)
abstract RemoveReadOnlyRegion :
readOnlyRegion:IReadOnlyRegion -> unit
function RemoveReadOnlyRegion(
readOnlyRegion : IReadOnlyRegion
)
参数
readOnlyRegion
类型:Microsoft.VisualStudio.Text.IReadOnlyRegion要移除的只读区域。
异常
异常 | 条件 |
---|---|
ArgumentNullException | readOnlyRegion 为 nullnull 引用(在 Visual Basic 中为 Nothing)。 |
InvalidOperationException | readOnlyRegion 在另一个缓冲区时创建的。 |
备注
移除任何已移除的只读区域不执行。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。