ActionContext.RemoveService Method (Type, Boolean)
Removes the specified service type from the service container, and optionally promotes the service to parent service containers. This class cannot be inherited.
Namespace: Microsoft.SqlServer.Management
Assembly: Microsoft.SqlServer.Management.SDK.SqlStudio (in Microsoft.SqlServer.Management.SDK.SqlStudio.dll)
Syntax
'Declaration
Public Sub RemoveService ( _
serviceType As Type, _
promote As Boolean _
)
'Usage
Dim instance As ActionContext
Dim serviceType As Type
Dim promote As Boolean
instance.RemoveService(serviceType, promote)
public void RemoveService(
Type serviceType,
bool promote
)
public:
virtual void RemoveService(
Type^ serviceType,
bool promote
) sealed
abstract RemoveService :
serviceType:Type *
promote:bool -> unit
override RemoveService :
serviceType:Type *
promote:bool -> unit
public final function RemoveService(
serviceType : Type,
promote : boolean
)
Parameters
- serviceType
Type: System.Type
The type of service to remove.
- promote
Type: System.Boolean
True to promote this request to any parent service containers; otherwise, false.
Implements
See Also