Sets the service provider from which to access shell services.
Namespace: Microsoft.VisualStudio.Modeling.Shell
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Shell (in Microsoft.VisualStudio.Modeling.Sdk.Shell.dll)
Syntax
'Declaration
Public Function SetSite ( _
site As IServiceProvider _
) As Integer
'Usage
Dim instance As ModelingEditorFactory
Dim site As IServiceProvider
Dim returnValue As Integer
returnValue = instance.SetSite(site)
public int SetSite(
IServiceProvider site
)
public:
virtual int SetSite(
IServiceProvider^ site
) sealed
public final function SetSite(
site : IServiceProvider
) : int
Parameters
site
Type: Microsoft.VisualStudio.OLE.Interop.IServiceProviderThe IServiceProvider interface of the service provider to be set.
Return Value
Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Implements
IVsEditorFactory.SetSite(IServiceProvider)
Remarks
This class cannot be inherited.
.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.