Compartir a través de


IVsPerPropertyBrowsing.IsPropertyReadOnly(Int32, Int32) Method

Definition

Determines if a property should be made read only.

public:
 int IsPropertyReadOnly(int dispid, [Runtime::InteropServices::Out] int % fReadOnly);
int IsPropertyReadOnly(int dispid, [Runtime::InteropServices::Out] int & fReadOnly);
public int IsPropertyReadOnly (int dispid, out int fReadOnly);
abstract member IsPropertyReadOnly : int * int -> int
Public Function IsPropertyReadOnly (dispid As Integer, ByRef fReadOnly As Integer) As Integer

Parameters

dispid
Int32

[in] Specifies dispatch ID.

fReadOnly
Int32

[out] 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 IVsPerPropertyBrowsing::IsPropertyReadOnly(  
   DISPID dispid,  
   [out, retval]BOOL* fReadOnly  
);  

Determines if a property should be made read only. This only applies to properties that are writeable, but returning true for *fReadOnly will cause them to be displayed by the Properties window as read only.

Applies to