EditorFactory.IVsEditorFactory.SetSite Method
Initializes an editor in the environment.
Namespace: Microsoft.VisualStudio.TestTools.Vsip
Assembly: Microsoft.VisualStudio.QualityTools.Vsip (in Microsoft.VisualStudio.QualityTools.Vsip.dll)
Syntax
'宣言
Private Function SetSite ( _
serviceProvider As IServiceProvider _
) As Integer Implements IVsEditorFactory.SetSite
int IVsEditorFactory.SetSite(
IServiceProvider serviceProvider
)
private:
virtual int SetSite(
IServiceProvider^ serviceProvider
) sealed = IVsEditorFactory::SetSite
private abstract SetSite :
serviceProvider:IServiceProvider -> int
private override SetSite :
serviceProvider:IServiceProvider -> int
JScript does not support explicit interface implementations.
Parameters
- serviceProvider
Type: Microsoft.VisualStudio.OLE.Interop.IServiceProvider
An IServiceProvider object.
Return Value
Type: System.Int32
S_OK .
Implements
IVsEditorFactory.SetSite(IServiceProvider)
Remarks
This member is an explicit interface member implementation. It can be used only when the EditorFactory instance is cast to an IVsEditorFactory interface.
.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.