IVsPerPropertyBrowsing::IsPropertyReadOnly Method (Int32, Int32)

 

Determines if a property should be made read only.

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

int IsPropertyReadOnly(
	int dispid,
	[OutAttribute] int% fReadOnly
)

Parameters

dispid
Type: System::Int32

[in] Specifies dispatch ID.

fReadOnly
Type: System::Int32

[out] 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 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.

Return to top
Show: