IVsPersistDocData2.SetDocDataReadOnly(Int32) Method

Definition

Sets the Read-Only flag to true.

public:
 int SetDocDataReadOnly(int fReadOnly);
public:
 int SetDocDataReadOnly(int fReadOnly);
int SetDocDataReadOnly(int fReadOnly);
public int SetDocDataReadOnly (int fReadOnly);
abstract member SetDocDataReadOnly : int -> int
Public Function SetDocDataReadOnly (fReadOnly As Integer) As Integer

Parameters

fReadOnly
Int32

[in] Flag indicating read only.

Returns

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

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsPersistDocData2::SetDocDataReadOnly(  
   [in] BOOL fReadOnly  
);  

Applies to