IVsPerPropertyBrowsing.ResetPropertyValue(Int32) 方法

定义

重置给定属性的值。

public:
 int ResetPropertyValue(int dispid);
public:
 int ResetPropertyValue(int dispid);
int ResetPropertyValue(int dispid);
public int ResetPropertyValue (int dispid);
abstract member ResetPropertyValue : int -> int
Public Function ResetPropertyValue (dispid As Integer) As Integer

参数

dispid
Int32

中指定调度 ID。

返回

Int32

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

注解

COM 签名

从 vsshell:

HRESULT IVsPerPropertyBrowsing::ResetPropertyValue(  
   DISPID dispid  
);  

将给定属性的值重置为默认值。 仅当 CanResetPropertyValue 返回 S_OK pfCanReset = true 给定属性的和 * 时,才会调用此方法。 如果返回值为 S_OK ,则属性的值将刷新为属性窗口中的默认值。

适用于