System.ComponentModel.LicenseManager.IsLicensed C# (CSharp) Method

IsLicensed() public static method

Determines if the given type has a valid license or not.

public static IsLicensed ( Type type ) : bool
type Type
return bool
        public static bool IsLicensed(Type type)
        {
            Debug.Assert(type != null, "IsValid Type cannot ever be null");
            License license;
            bool value = ValidateInternal(type, null, false, out license);
            if (license != null)
            {
                license.Dispose();
                license = null;
            }
            return value;
        }