ModelingEditorFactory.SetSite Method

Sets the service provider from which to access shell services.

Namespace:  Microsoft.VisualStudio.Modeling.Shell
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Shell.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.10.0.dll)

Syntax

声明
Public Function SetSite ( _
    site As IServiceProvider _
) As Integer
public int SetSite(
    IServiceProvider site
)
public:
virtual int SetSite(
    IServiceProvider^ site
) sealed
abstract SetSite : 
        site:IServiceProvider -> int 
override SetSite : 
        site:IServiceProvider -> int 
public final function SetSite(
    site : IServiceProvider
) : int

Parameters

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

See Also

Reference

ModelingEditorFactory Class

Microsoft.VisualStudio.Modeling.Shell Namespace

IVsEditorFactory