IVsPerPropertyBrowsing.IsPropertyReadOnly 方法

确定属性是否应生成仅读取。

命名空间:  Microsoft.VisualStudio.Shell.Interop
程序集:  Microsoft.VisualStudio.Shell.Interop(在 Microsoft.VisualStudio.Shell.Interop.dll 中)

语法

声明
Function IsPropertyReadOnly ( _
    dispid As Integer, _
    <OutAttribute> ByRef fReadOnly As Integer _
) As Integer
int IsPropertyReadOnly(
    int dispid,
    out int fReadOnly
)

参数

  • fReadOnly
    类型:System.Int32%
    [out] 只读的标志指示。

返回值

类型:System.Int32
如果方法成功,则返回 S_OK。如果失败,它会返回一个错误代码。

备注

COM 签名

从 vsshell.idl:

HRESULT IVsPerPropertyBrowsing::IsPropertyReadOnly(
   DISPID dispid,
   [out, retval]BOOL* fReadOnly
);

确定属性是否应生成仅读取。 这仅适用于可写的属性,但是,返回 true 为 *fReadOnly 将导致它们由 属性 窗口显示为只读。

.NET Framework 安全性

请参见

参考

IVsPerPropertyBrowsing 接口

Microsoft.VisualStudio.Shell.Interop 命名空间