This documentation is archived and is not being maintained.

IVsPersistDocData2.SetDocDataReadOnly Method

Sets the Read-Only flag to true.

Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in

int SetDocDataReadOnly (
	[InAttribute] int fReadOnly
int SetDocDataReadOnly (
	/** @attribute InAttribute() */ int fReadOnly
function SetDocDataReadOnly (
	fReadOnly : int
) : int



[in] Flag indicating read only.

Return Value

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

COM Signature

From vsshell.idl:

HRESULT IVsPersistDocData2::SetDocDataReadOnly(
   [in] BOOL fReadOnly