SubsystemManager.RegisterSubsystem Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
RegisterSubsystem(SubsystemKind, ISubsystem) |
Register an implementation for a subsystem. |
RegisterSubsystem<TConcreteSubsystem,TImplementation>(TImplementation) |
Subsystem registration. |
RegisterSubsystem(SubsystemKind, ISubsystem)
Register an implementation for a subsystem.
public static void RegisterSubsystem (System.Management.Automation.Subsystem.SubsystemKind kind, System.Management.Automation.Subsystem.ISubsystem proxy);
static member RegisterSubsystem : System.Management.Automation.Subsystem.SubsystemKind * System.Management.Automation.Subsystem.ISubsystem -> unit
Public Shared Sub RegisterSubsystem (kind As SubsystemKind, proxy As ISubsystem)
Parameters
- kind
- SubsystemKind
The target SubsystemKind of the registration.
- proxy
- ISubsystem
An instance of the implementation.
Applies to
RegisterSubsystem<TConcreteSubsystem,TImplementation>(TImplementation)
Subsystem registration.
public static void RegisterSubsystem<TConcreteSubsystem,TImplementation> (TImplementation proxy) where TConcreteSubsystem : class, System.Management.Automation.Subsystem.ISubsystem where TImplementation : class, TConcreteSubsystem;
static member RegisterSubsystem : 'Implementation -> unit (requires 'ConcreteSubsystem : null and 'ConcreteSubsystem :> System.Management.Automation.Subsystem.ISubsystem)
Public Shared Sub RegisterSubsystem(Of TConcreteSubsystem As {Class, ISubsystem}, TImplementation As {Class, ISubsystem}) (proxy As TImplementation)
Type Parameters
- TConcreteSubsystem
The concrete subsystem base type.
- TImplementation
The implementation type of that concrete subsystem.
Parameters
- proxy
- TImplementation
An instance of the implementation.