FlavoredProjectFactory.IVsProjectFactory.SetSite Method
Initializes the project and allows the project to obtain services proffered by the environment.
Namespace: Microsoft.VisualStudio.Shell.Flavor
Assembly: Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)
Syntax
'Declaration
Private Function SetSite ( _
provider As IServiceProvider _
) As Integer Implements IVsProjectFactory.SetSite
int IVsProjectFactory.SetSite(
IServiceProvider provider
)
private:
virtual int SetSite(
IServiceProvider^ provider
) sealed = IVsProjectFactory::SetSite
private abstract SetSite :
provider:IServiceProvider -> int
private override SetSite :
provider:IServiceProvider -> int
JScript does not support explicit interface implementations.
Parameters
provider
Type: Microsoft.VisualStudio.OLE.Interop.IServiceProvider
Return Value
Type: Int32
S_OK.
Implements
IVsProjectFactory.SetSite(IServiceProvider)
.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.