IVsRunningDocumentTable4::UpdateReadOnlyState Method (UInt32)

 

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)

void UpdateReadOnlyState(
	unsigned int cookie
)

Parameters

cookie
Type: System::UInt32

[in] The document to check.

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.

Return to top
Show: