EditorFactory.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
声明
Protected Overridable Function SetSite ( _
serviceProvider As IServiceProvider _
) As Integer
protected virtual int SetSite(
IServiceProvider serviceProvider
)
protected:
virtual int SetSite(
IServiceProvider^ serviceProvider
)
abstract SetSite :
serviceProvider:IServiceProvider -> int
override SetSite :
serviceProvider:IServiceProvider -> int
protected function SetSite(
serviceProvider : IServiceProvider
) : int
Parameters
- serviceProvider
Type: Microsoft.VisualStudio.OLE.Interop.IServiceProvider
An IServiceProvider object.
Return Value
Type: System.Int32
S_OK .
.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.