ServiceProvider.IObjectWithSite.SetSite Method
Sets the site object to resolve services.
Namespace: Microsoft.VisualStudio.Shell
Assemblies: Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)
Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)
Microsoft.VisualStudio.Shell.9.0 (in Microsoft.VisualStudio.Shell.9.0.dll)
Syntax
'Déclaration
Private Sub SetSite ( _
pUnkSite As Object _
) Implements IObjectWithSite.SetSite
'Utilisation
Dim instance As ServiceProvider
Dim pUnkSite As Object
CType(instance, IObjectWithSite).SetSite(pUnkSite)
void IObjectWithSite.SetSite(
Object pUnkSite
)
private:
virtual void SetSite(
Object^ pUnkSite
) sealed = IObjectWithSite::SetSite
private abstract SetSite :
pUnkSite:Object -> unit
private override SetSite :
pUnkSite:Object -> unit
JScript does not support explicit interface implementations.
Parameters
- pUnkSite
Type: System.Object
The site to be set.
Implements
IObjectWithSite.SetSite(Object)
.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.