Share via


IVsRunningDocumentTable4.UpdateReadOnlyState Method

Updates the document’s read-only state.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.12.0 (in Microsoft.VisualStudio.Shell.Interop.12.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

  • cookie
    Type: UInt32

    [in] The document to check.

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

IVsRunningDocumentTable4 Interface

Microsoft.VisualStudio.Shell.Interop Namespace