IVsPerPropertyBrowsing::HasDefaultValue Method (Int32, Int32)

 

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

Namespace:   Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

int HasDefaultValue(
	int dispid,
	[OutAttribute] int% fDefault
)

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::Int32

If 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.

Return to top
Show: