Bagikan melalui


IVsPerPropertyBrowsing.ResetPropertyValue Method

Resets the value of the given property.

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

Syntax

'Declaration
Function ResetPropertyValue ( _
    dispid As Integer _
) As Integer
int ResetPropertyValue(
    int dispid
)
int ResetPropertyValue(
    int dispid
)
abstract ResetPropertyValue : 
        dispid:int -> int
function ResetPropertyValue(
    dispid : int
) : int

Parameters

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

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.

.NET Framework Security

See Also

Reference

IVsPerPropertyBrowsing Interface

Microsoft.VisualStudio.Shell.Interop Namespace