IVsPerPropertyBrowsing.CanResetPropertyValue Method
Checks whether the given property can be reset to the default value.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Syntax
'宣告
Function CanResetPropertyValue ( _
dispid As Integer, _
<OutAttribute> ByRef pfCanReset As Integer _
) As Integer
'用途
Dim instance As IVsPerPropertyBrowsing
Dim dispid As Integer
Dim pfCanReset As Integer
Dim returnValue As Integer
returnValue = instance.CanResetPropertyValue(dispid, _
pfCanReset)
int CanResetPropertyValue(
int dispid,
out int pfCanReset
)
int CanResetPropertyValue(
int dispid,
[OutAttribute] int% pfCanReset
)
abstract CanResetPropertyValue :
dispid:int *
pfCanReset:int byref -> int
function CanResetPropertyValue(
dispid : int,
pfCanReset : int
) : int
Parameters
- dispid
Type: System.Int32
[in] Specifies the dispatch ID.
- pfCanReset
Type: System.Int32%
[out] Pointer to a flag indicating can reset.
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::CanResetPropertyValue(
DISPID dispid,
[out, retval]BOOL* pfCanReset
);
Checks whether the given property can be reset to the default value. If return value is not S_OK or *pfCanReset is false, the value will not be able to be reset.
.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.
See Also
Reference
IVsPerPropertyBrowsing Interface