Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Class constructor for wrapping an unmanaged IServiceProvider interface that is accessible through the managed IServiceProvider interface.
This API is not CLS-compliant.
Namespace: Microsoft.VisualStudio.Data
Assembly: Microsoft.VisualStudio.Data (in Microsoft.VisualStudio.Data.dll)
Syntax
'Declaration
<CLSCompliantAttribute(False)> _
Public Sub New ( _
serviceProvider As IServiceProvider _
)
[CLSCompliantAttribute(false)]
public ServiceProvider(
IServiceProvider serviceProvider
)
[CLSCompliantAttribute(false)]
public:
ServiceProvider(
IServiceProvider^ serviceProvider
)
[<CLSCompliantAttribute(false)>]
new :
serviceProvider:IServiceProvider -> ServiceProvider
public function ServiceProvider(
serviceProvider : IServiceProvider
)
Parameters
- serviceProvider
Type: Microsoft.VisualStudio.OLE.Interop.IServiceProvider
An unmanaged IServiceProvider interface object to wrap.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | The serviceProvider parameter is null. |
Remarks
This constructor should be used when a managed object wants to access services exposed by an unmanaged IServiceProvider interface, yet would like to avoid the headache of calling the unmanaged COM interface directly.
.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.