IVsPerPropertyBrowsing::ResetPropertyValue Method (Int32)

 

Resets the value of the given property.

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

int ResetPropertyValue(
	int dispid
)

Parameters

dispid
Type: System::Int32

[in] Specifies the dispatch ID.

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

Return to top
Show: