LicenseManager.CreateWithContext Metódus
Definíció
Fontos
Egyes információk olyan, kiadás előtti termékekre vonatkoznak, amelyek a kiadásig még jelentősen módosulhatnak. A Microsoft nem vállal kifejezett vagy törvényi garanciát az itt megjelenő információért.
Létrehoz egy objektumtípus egy példányát licenckörnyezettel.
Túlterhelések
| Name | Description |
|---|---|
| CreateWithContext(Type, LicenseContext) |
Létrehoz egy adott típusú példányt, adott kontextusban, amelyben használhatja a licenccel rendelkező példányt. |
| CreateWithContext(Type, LicenseContext, Object[]) |
Létrehoz egy adott típusú példányt a megadott argumentumokkal, adott kontextusban, amelyben használhatja a licenccel rendelkező példányt. |
CreateWithContext(Type, LicenseContext)
- Forrás:
- LicenseManager.cs
- Forrás:
- LicenseManager.cs
- Forrás:
- LicenseManager.cs
- Forrás:
- LicenseManager.cs
- Forrás:
- LicenseManager.cs
Létrehoz egy adott típusú példányt, adott kontextusban, amelyben használhatja a licenccel rendelkező példányt.
public:
static System::Object ^ CreateWithContext(Type ^ type, System::ComponentModel::LicenseContext ^ creationContext);
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public static object? CreateWithContext(Type type, System.ComponentModel.LicenseContext creationContext);
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public static object CreateWithContext(Type type, System.ComponentModel.LicenseContext creationContext);
public static object CreateWithContext(Type type, System.ComponentModel.LicenseContext creationContext);
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
static member CreateWithContext : Type * System.ComponentModel.LicenseContext -> obj
static member CreateWithContext : Type * System.ComponentModel.LicenseContext -> obj
Public Shared Function CreateWithContext (type As Type, creationContext As LicenseContext) As Object
Paraméterek
- creationContext
- LicenseContext
Egy LicenseContext , amely meghatározza, hogy mikor használhatja a licenccel rendelkező példányt.
Válaszok
A megadott típusú példány.
- Attribútumok
Megjegyzések
A LicenseContext paraméterként creationContext megadott paraméter ennek az élettartamának a függvénye CurrentContextleszLicense. A CreateWithContext metódus blokkolja az összes többi szálat abban, hogy módosítsa a AppDomainCurrentContext, lehetővé téve CreateWithContext , hogy atomi műveletként viselkedjen.
Lásd még
- License
- LicenseContext
- LicenseException
- LicenseProvider
- LicenseProviderAttribute
- LicFileLicenseProvider
- LicenseUsageMode
A következőre érvényes:
CreateWithContext(Type, LicenseContext, Object[])
- Forrás:
- LicenseManager.cs
- Forrás:
- LicenseManager.cs
- Forrás:
- LicenseManager.cs
- Forrás:
- LicenseManager.cs
- Forrás:
- LicenseManager.cs
Létrehoz egy adott típusú példányt a megadott argumentumokkal, adott kontextusban, amelyben használhatja a licenccel rendelkező példányt.
public:
static System::Object ^ CreateWithContext(Type ^ type, System::ComponentModel::LicenseContext ^ creationContext, cli::array <System::Object ^> ^ args);
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public static object? CreateWithContext(Type type, System.ComponentModel.LicenseContext creationContext, object[] args);
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public static object CreateWithContext(Type type, System.ComponentModel.LicenseContext creationContext, object[] args);
public static object CreateWithContext(Type type, System.ComponentModel.LicenseContext creationContext, object[] args);
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
static member CreateWithContext : Type * System.ComponentModel.LicenseContext * obj[] -> obj
static member CreateWithContext : Type * System.ComponentModel.LicenseContext * obj[] -> obj
Public Shared Function CreateWithContext (type As Type, creationContext As LicenseContext, args As Object()) As Object
Paraméterek
- creationContext
- LicenseContext
Egy LicenseContext , amely meghatározza, hogy mikor használhatja a licenccel rendelkező példányt.
Válaszok
A megadott típus egy példánya az argumentumok adott tömbjével.
- Attribútumok
Megjegyzések
A LicenseContext paraméterként creationContext megadott paraméter ennek az élettartamának a függvénye CurrentContextleszLicense. Ez a módszer blokkolja az összes többi szálat abban, AppDomain hogy módosítsa a CurrentContext, lehetővé téve CreateWithContext , hogy atomi műveletként viselkedjen.
Lásd még
- License
- LicenseContext
- LicenseException
- LicenseProvider
- LicenseProviderAttribute
- LicFileLicenseProvider
- LicenseUsageMode