Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
- 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.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.