IVsEditorFactory::SetSite Method (IServiceProvider^)

 

Initializes an editor in the environment.

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

int SetSite(
	IServiceProvider^ psp
)

Parameters

psp
Type: Microsoft.VisualStudio.OLE.Interop::IServiceProvider^

[in] Pointer to the IServiceProvider interface which can be used by the factory to obtain other interfaces.

Return Value

Type: System::Int32

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

From vsshell.idl:

HRESULT IVsEditorFactory::SetSite(
   [in] IServiceProvider *pSP
);
Return to top
Show: