Partager via


IVsPerPropertyBrowsing.CanResetPropertyValue(Int32, Int32) Method

Definition

Checks whether the given property can be reset to the default value.

public:
 int CanResetPropertyValue(int dispid, [Runtime::InteropServices::Out] int % pfCanReset);
int CanResetPropertyValue(int dispid, [Runtime::InteropServices::Out] int & pfCanReset);
public int CanResetPropertyValue (int dispid, out int pfCanReset);
abstract member CanResetPropertyValue : int * int -> int
Public Function CanResetPropertyValue (dispid As Integer, ByRef pfCanReset As Integer) As Integer

Parameters

dispid
Int32

[in] Specifies the dispatch ID.

pfCanReset
Int32

[out] Pointer to a flag indicating can reset.

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::CanResetPropertyValue(  
   DISPID dispid,  
   [out, retval]BOOL* pfCanReset  
);  

Checks whether the given property can be reset to the default value. If return value is not S_OK or *pfCanReset is false, the value will not be able to be reset.

Applies to