This documentation is archived and is not being maintained.

IVsPersistDocData2.IsDocDataReadOnly Method

Determines whether the document data is read-only.

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

int IsDocDataReadOnly (
	out int pfReadOnly
int IsDocDataReadOnly (
	/** @attribute OutAttribute() */ /** @ref */ int pfReadOnly
JScript does not support passing value-type arguments by reference.



[out] Pointer to a 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::IsDocDataReadOnly(
   [out] BOOL *pfReadOnly