GlobalObjectProvider.IObjectWithSite.SetSite Method
Sets the IserviceProvider.
Namespace: Microsoft.VisualStudio.Shell.Design
Assembly: Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)
Syntax
'Declaration
Private Sub SetSite ( _
site As Object _
) Implements IObjectWithSite.SetSite
'Usage
Dim instance As GlobalObjectProvider
Dim site As Object
CType(instance, IObjectWithSite).SetSite(site)
void IObjectWithSite.SetSite(
Object site
)
private:
virtual void SetSite(
Object^ site
) sealed = IObjectWithSite::SetSite
private abstract SetSite :
site:Object -> unit
private override SetSite :
site:Object -> unit
JScript does not support explicit interface implementations.
Parameters
- site
Type: System.Object
The service provider.
Implements
IObjectWithSite.SetSite(Object)
Remarks
The SetSite(Object) method sets an internal IServiceProvider field maintained by the GlobalObjectProvider class. This field is used directly by the GetService and GetSite(Guid%, IntPtr%) methods.
The site parameter must be of type IServiceProvider or IServiceProvider.
.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.
See Also
Reference
Microsoft.VisualStudio.Shell.Design Namespace
GetSite(Guid%, IntPtr%)