IFilterProperties.IsPropertyHidden(String) 方法

定义

返回指定的属性是在 " 属性 " 窗口中 (隐藏还是重写) 进行筛选。

public:
 EnvDTE::vsFilterProperties IsPropertyHidden(System::String ^ PropertyName);
public:
 EnvDTE::vsFilterProperties IsPropertyHidden(Platform::String ^ PropertyName);
EnvDTE::vsFilterProperties IsPropertyHidden(std::wstring const & PropertyName);
[System.Runtime.InteropServices.DispId(1)]
public EnvDTE.vsFilterProperties IsPropertyHidden (string PropertyName);
[<System.Runtime.InteropServices.DispId(1)>]
abstract member IsPropertyHidden : string -> EnvDTE.vsFilterProperties
Public Function IsPropertyHidden (PropertyName As String) As vsFilterProperties

参数

PropertyName
String

正在查询的属性的名称,以确定它是否在 " 属性 " 窗口中隐藏或重写。

返回

vsFilterProperties

一个 vsFilterProperties 常数,它指示属性是否被隐藏或重写。

属性

注解

当 " 属性 " 窗口显示具有支持的扩展器的对象时 IFilterProperties ,它将 IsPropertyHidden 对该对象公开的每个可浏览的属性进行调用。 如果此方法返回 vsFilterPropertiesAll ,则隐藏该属性。 如果返回 vsFilterPropertiesSet ,则将属性设为只读。 如果它返回 vsFilterPropertiesNone ,则该属性将显示在窗口中。

若要限制属性的值,扩展器必须返回 vsFilterPropertiesAll ,并通过其自己的具有有限值集的 IDispatch 实现公开相同的命名属性。

适用于