Class
ProductReferenceAttribute

Definition

Namespace:Telerik.Licensing

Assembly:Telerik.JustMock.dll

Syntax:

cs-api-definition
[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)]
public class ProductReferenceAttribute : Attribute

Inheritance: objectAttributeProductReferenceAttribute

Inherited Members Attribute.GetCustomAttributes(MemberInfo, Type)Attribute.GetCustomAttributes(MemberInfo, Type, bool)Attribute.GetCustomAttributes(MemberInfo)Attribute.GetCustomAttributes(MemberInfo, bool)Attribute.IsDefined(MemberInfo, Type)Attribute.IsDefined(MemberInfo, Type, bool)Attribute.GetCustomAttribute(MemberInfo, Type)Attribute.GetCustomAttribute(MemberInfo, Type, bool)Attribute.GetCustomAttributes(ParameterInfo)Attribute.GetCustomAttributes(ParameterInfo, Type)Attribute.GetCustomAttributes(ParameterInfo, Type, bool)Attribute.GetCustomAttributes(ParameterInfo, bool)Attribute.IsDefined(ParameterInfo, Type)Attribute.IsDefined(ParameterInfo, Type, bool)Attribute.GetCustomAttribute(ParameterInfo, Type)Attribute.GetCustomAttribute(ParameterInfo, Type, bool)Attribute.GetCustomAttributes(Module, Type)Attribute.GetCustomAttributes(Module)Attribute.GetCustomAttributes(Module, bool)Attribute.GetCustomAttributes(Module, Type, bool)Attribute.IsDefined(Module, Type)Attribute.IsDefined(Module, Type, bool)Attribute.GetCustomAttribute(Module, Type)Attribute.GetCustomAttribute(Module, Type, bool)Attribute.GetCustomAttributes(Assembly, Type)Attribute.GetCustomAttributes(Assembly, Type, bool)Attribute.GetCustomAttributes(Assembly)Attribute.GetCustomAttributes(Assembly, bool)Attribute.IsDefined(Assembly, Type)Attribute.IsDefined(Assembly, Type, bool)Attribute.GetCustomAttribute(Assembly, Type)Attribute.GetCustomAttribute(Assembly, Type, bool)Attribute.Equals(object)Attribute.GetHashCode()Attribute.Match(object)Attribute.IsDefaultAttribute()Attribute.TypeId

Constructors

ProductReferenceAttribute(string, string, string, string, string)

In .NET Framework non-SDK style projects, we don't get transitive dependencies, running Telerik.Licensing on a class lib will mark the lib with ProductReferenceAttribute, so we can transfer the knowledge in: Telerik -> Lib -> Exe setup. This can still fail in Telerik -> Lib2 -> Lib1 -> Exe.

Declaration

cs-api-definition
public ProductReferenceAttribute(string productCode, string licenseDate, string redistributedBy, string productName, string productVersion)

Parameters

productCode

string

The product code.

licenseDate

string

The product license date, the release date of the required Telerik .DLL, in YYYY-MM-DD

redistributedBy

string

A ";" separated list of product codes that also redistribute the required one. For example a BLAZOR license allows you to use DPL.

productName

string

The product name.

productVersion

string

The product version.

Properties

LicenseDate

Declaration

cs-api-definition
public DateTime LicenseDate { get; }

Property Value

DateTime

ProductCode

Declaration

cs-api-definition
public string ProductCode { get; }

Property Value

string

ProductName

A product name, display friendly english version of the product name, e.g. "Telerik UI for WPF". Non-essential for license lookup. Not included in hash code or equality comparison.

Declaration

cs-api-definition
public string ProductName { get; }

Property Value

string

ProductVersion

A product version, used only for display purposes. Non-essential for license lookup. Not included in hash code or equality comparison.

Declaration

cs-api-definition
public string ProductVersion { get; }

Property Value

string

RedistributedBy

Some products like DPL, are not licensed on their own, but are redistributed and licensed by others like BLAZOR, MAUI etc.

Declaration

cs-api-definition
public string[] RedistributedBy { get; }

Property Value

string[]