Creates an instance of the specified type, given a context in which you can use the licensed instance.
- type
A Type that represents the type to create.
- creationContext
A System.ComponentModel.LicenseContext that specifies when you can use the licensed instance.
![]()
An instance of the specified type.
The System.ComponentModel.LicenseContext you specify as the creationContext parameter is used as the LicenseManager.CurrentContext for the life of this System.ComponentModel.License. The LicenseManager.CreateWithContext(Type, LicenseContext) method blocks all other threads in the AppDomain from modifying the LicenseManager.CurrentContext, allowing LicenseManager.CreateWithContext(Type, LicenseContext) to behave as an atomic operation.