IVsPerPropertyBrowsing::HasDefaultValue Method (Int32, Int32)
Visual Studio 2015
Determines if the current value for a property is the default.
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Parameters
- dispid
-
Type:
System::Int32
[in] Specifies the dispatch ID.
- fDefault
-
Type:
System::Int32
[out] Flag indicating the current property value is the default value.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
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.
Show: