次の方法で共有


IVsPerPropertyBrowsing.ResetPropertyValue(Int32) Method

Definition

Resets the value of the given property.

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

Parameters

dispid
Int32

[in] Specifies the dispatch ID.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsPerPropertyBrowsing::ResetPropertyValue(  
   DISPID dispid  
);  

Resets the value of the given property to the default. This method will be called only if the CanResetPropertyValue returns S_OK and *pfCanReset = true for the given property. If the return value is S_OK, the property's value will then be refreshed to the default value in the Properties window.

Applies to