Share via


IVsRunningDocumentTable3.UpdateReadOnlyState Method

Updates the document’s read-only state.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.11.0 (in Microsoft.VisualStudio.Shell.Interop.11.0.dll)

Syntax

'Declaration
Sub UpdateReadOnlyState ( _
    cookie As UInteger _
)
void UpdateReadOnlyState(
    uint cookie
)
void UpdateReadOnlyState(
    [InAttribute] unsigned int cookie
)
abstract UpdateReadOnlyState : 
        cookie:uint32 -> unit
function UpdateReadOnlyState(
    cookie : uint
)

Parameters

Remarks

This method calls IsDocDataReadOnly for the document, and raises OnAfterAttributeChange(Ex) if the read-only state has changed. This is preferred to calling NotifyDocumentChangedEx directly as the latter may cause extraneous attribute change notifications to be raised.

.NET Framework Security

See Also

Reference

IVsRunningDocumentTable3 Interface

Microsoft.VisualStudio.Shell.Interop Namespace