Bagikan melalui


IVsPerPropertyBrowsing.IsPropertyReadOnly Method

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)

Syntax

'Declaration
Function IsPropertyReadOnly ( _
    dispid As Integer, _
    <OutAttribute> ByRef fReadOnly As Integer _
) As Integer
int IsPropertyReadOnly(
    int dispid,
    out int fReadOnly
)
int IsPropertyReadOnly(
    int dispid, 
    [OutAttribute] int% fReadOnly
)
abstract IsPropertyReadOnly : 
        dispid:int * 
        fReadOnly:int byref -> int
function IsPropertyReadOnly(
    dispid : int, 
    fReadOnly : int
) : int

Parameters

  • 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.

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.

.NET Framework Security

See Also

Reference

IVsPerPropertyBrowsing Interface

Microsoft.VisualStudio.Shell.Interop Namespace