IVsPersistDocData2::SetDocDataReadOnly Method (Int32)

 

Sets the Read-Only flag to true.

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

int SetDocDataReadOnly(
	int fReadOnly
)

Parameters

fReadOnly
Type: System::Int32

[in] Flag indicating read only.

Return Value

Type: System::Int32

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

From vsshell.idl:

HRESULT IVsPersistDocData2::SetDocDataReadOnly(
   [in] BOOL fReadOnly
);
Return to top
Show: