LicenseManager.Validate Method
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.
Determines whether a license can be granted.
Validate(Type) |
Determines whether a license can be granted for the specified type. |
Validate(Type, Object) |
Determines whether a license can be granted for the instance of the specified type. |
- Source:
- LicenseManager.cs
- Source:
- LicenseManager.cs
- Source:
- LicenseManager.cs
Determines whether a license can be granted for the specified type.
public:
static void Validate(Type ^ type);
public static void Validate (Type type);
static member Validate : Type -> unit
Public Shared Sub Validate (type As Type)
Parameters
Exceptions
A License cannot be granted.
Remarks
This method throws a LicenseException when a valid License cannot be granted. The IsValid method does not throw an exception.
See also
- License
- LicenseContext
- LicenseException
- LicenseProvider
- LicenseProviderAttribute
- LicFileLicenseProvider
- LicenseUsageMode
Applies to
.NET 9 og aðrar útgáfur
Vara | Útgáfur |
---|---|
.NET | Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0, 2.1 |
- Source:
- LicenseManager.cs
- Source:
- LicenseManager.cs
- Source:
- LicenseManager.cs
Determines whether a license can be granted for the instance of the specified type.
public:
static System::ComponentModel::License ^ Validate(Type ^ type, System::Object ^ instance);
public static System.ComponentModel.License Validate (Type type, object instance);
public static System.ComponentModel.License? Validate (Type type, object? instance);
static member Validate : Type * obj -> System.ComponentModel.License
Public Shared Function Validate (type As Type, instance As Object) As License
Parameters
Returns
A valid License.
Exceptions
The type is licensed, but a License cannot be granted.
Remarks
This method throws a LicenseException when a valid License cannot be granted. The IsValid method does not throw an exception.
All objects asking for a License must dispose of the license by calling the Dispose method when the object is disposed of or finalized.
See also
- License
- LicenseContext
- LicenseException
- LicenseProvider
- LicenseProviderAttribute
- LicFileLicenseProvider
- LicenseUsageMode
Applies to
.NET 9 og aðrar útgáfur
Vara | Útgáfur |
---|---|
.NET | Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0, 2.1 |
.NET umsögn
.NET er opið verkefni. Veldu tengil til að gefa umsögn: