Class EmbeddedLicenseAttribute<T>
Sets an embedded license file to associate with the element.
Inheritance
EmbeddedLicenseAttribute<T>
Implements
Inherited Members
Namespace: TheXDS.MCART.Attributes
Assembly: MCART.dll
Syntax
public class EmbeddedLicenseAttribute<T> : LicenseAttributeBase, IValueAttribute<string> where T : ICompressorGetter, new()
Type Parameters
Name | Description |
---|---|
T | Type of compressor to use for extracting the content of the license. |
Constructors
| Edit this page View SourceEmbeddedLicenseAttribute(string, string)
Sets an embedded license file to associate with the element.
Declaration
public EmbeddedLicenseAttribute(string value, string path)
Parameters
Type | Name | Description |
---|---|---|
string | value | Embedded license file. |
string | path | Path of the embedded license file within the assembly. |
Properties
| Edit this page View SourcePath
Path of the embedded license file within the assembly.
Declaration
public string Path { get; }
Property Value
Type | Description |
---|---|
string |
Methods
| Edit this page View SourceGetLicense(object)
Reads the content of the embedded license within the assembly.
Declaration
public override License GetLicense(object context)
Parameters
Type | Name | Description |
---|---|---|
object | context | Object from which this attribute was obtained. |
Returns
Type | Description |
---|---|
License | The content of the license. |