共用方式為


IVsPerPropertyBrowsing.HideProperty Method

Hides the property at the given dispid from the Properties window.

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

Syntax

'宣告
Function HideProperty ( _
    dispid As Integer, _
    <OutAttribute> ByRef pfHide As Integer _
) As Integer
'用途
Dim instance As IVsPerPropertyBrowsing
Dim dispid As Integer
Dim pfHide As Integer
Dim returnValue As Integer

returnValue = instance.HideProperty(dispid, _
    pfHide)
int HideProperty(
    int dispid,
    out int pfHide
)
int HideProperty(
    int dispid, 
    [OutAttribute] int% pfHide
)
abstract HideProperty : 
        dispid:int * 
        pfHide:int byref -> int 
function HideProperty(
    dispid : int, 
    pfHide : int
) : int

Parameters

  • pfHide
    Type: System.Int32%
    [out] Pointer to a flag indicating hide.

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::HideProperty(
   DISPID dispid,
   [out,retval]BOOL* pfHide
);

The HideProperty method hides the property at the given dispid from the Properties window. Implementers should return E_NOTIMPL to show all properties that are otherwise browsable.

.NET Framework Security

See Also

Reference

IVsPerPropertyBrowsing Interface

IVsPerPropertyBrowsing Members

Microsoft.VisualStudio.Shell.Interop Namespace