IVsUserContext.RemoveAttributeIncludeChildren(String, String) 方法

定义

从上下文包和任何关联的子上下文包中删除特性或关键字。

public:
 int RemoveAttributeIncludeChildren(System::String ^ szName, System::String ^ szValue);
public:
 int RemoveAttributeIncludeChildren(Platform::String ^ szName, Platform::String ^ szValue);
int RemoveAttributeIncludeChildren(std::wstring const & szName, std::wstring const & szValue);
public int RemoveAttributeIncludeChildren (string szName, string szValue);
abstract member RemoveAttributeIncludeChildren : string * string -> int
Public Function RemoveAttributeIncludeChildren (szName As String, szValue As String) As Integer

参数

szName
String

中特性名称或关键字。 如果要删除属性,请指定属性的名称。 如果要删除查找关键字或 F1 关键字,请输入 term 关键字。

szValue
String

中Attribute 或关键字值。 如果要删除属性,请指定属性的值。 如果要删除查找关键字或 F1 关键字,请输入关键字的实际文本。

返回

Int32

如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。

注解

COM 签名

从上下文 .idl:

HRESULT IVsUserContext::RemoveAttributeIncludeChildren(  
   [in] LPCOLESTR szName,  
   [in] LPCOLESTR szValue  
);  

调用 IVsUserContext.RemoveAttributeIncludeChildren (szName, null) 从上下文包和任何关联的子上下文包中删除给定特性的所有值。 调用 IVsUserContext.RemoveAttributeIncludeChildren (时 nullnull) 将从上下文和子上下文包中删除所有属性。

使用 RemoveAttribute 方法仅删除上下文包 (中的属性或关键字,不包括子上下文包) 。

适用于