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
cookie
Type: System.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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.