System.ComponentModel.LicenseProvider.GetLicense C# (CSharp) Method

GetLicense() public abstract method

When overridden in a derived class, gets a license for an instance or type of component.
public abstract GetLicense ( System.ComponentModel.LicenseContext context, Type type, object? instance, bool allowExceptions ) : License?
context System.ComponentModel.LicenseContext
type Type
instance object?
allowExceptions bool
return License?
        public abstract License? GetLicense(LicenseContext context, Type type, object? instance, bool allowExceptions);
    }

Usage Example

Example #1
0
        // Perform license validation for a type.
        private static License PerformValidation(Type type, Object instance)
        {
            LicenseProvider provider = GetProvider(type);

            return(provider.GetLicense
                       (CurrentContext, type, instance, false));
        }
All Usage Examples Of System.ComponentModel.LicenseProvider::GetLicense
LicenseProvider