Share via


IVsPerPropertyBrowsing.HasDefaultValue(Int32, Int32) Method

Definition

Determines if the current value for a property is the default.

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

Parameters

dispid
Int32

[in] Specifies the dispatch ID.

fDefault
Int32

[out] Flag indicating the current property value is the default value.

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

Determines if the current value for a property is the default. If it is not the default, the property will be shown as bold in the Properties window to indicate that it has been modified from the default. Implementers should return a non-S_OK return code or *fDefault = true to display property value normally.

Applies to