Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
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
- 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.