次の方法で共有


GlobalObjectProvider.IObjectWithSite.SetSite Method

Sets the IserviceProvider.

Namespace:  Microsoft.VisualStudio.Shell.Design
Assembly:  Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)

Syntax

'宣言
Private Sub SetSite ( _
    site As Object _
) Implements IObjectWithSite.SetSite
void IObjectWithSite.SetSite(
    Object site
)

Parameters

Implements

IObjectWithSite.SetSite(Object)

Remarks

The SetSite method sets an internal IServiceProvider field maintained by the GlobalObjectProvider class. This field is used directly by the GetService and GetSite methods.

The site parameter must be of type IServiceProvider or IServiceProvider.

.NET Framework Security

See Also

Reference

GlobalObjectProvider Class

Microsoft.VisualStudio.Shell.Design Namespace

GetSite

GetService