共用方式為


IVsPropertyBrowser.SetState(VsPropertyBrowserState[]) Method

Definition

Sets the state of the property browser using information in a VsPropertyBrowserState structure.

public:
 int SetState(cli::array <Microsoft::VisualStudio::Shell::Interop::VsPropertyBrowserState> ^ pstate);
int SetState(std::Array <Microsoft::VisualStudio::Shell::Interop::VsPropertyBrowserState> const & pstate);
public int SetState (Microsoft.VisualStudio.Shell.Interop.VsPropertyBrowserState[] pstate);
abstract member SetState : Microsoft.VisualStudio.Shell.Interop.VsPropertyBrowserState[] -> int
Public Function SetState (pstate As VsPropertyBrowserState()) As Integer

Parameters

pstate
VsPropertyBrowserState[]

[in] Pointer to a VsPropertyBrowserState structure containing the new state of the browser.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsPropertyBrowser::SetState(  
   [in] const VsPropertyBrowserState * pState  
);  

Applies to