Class LicenseFileAttribute
Sets an external license file to associate with the element.
Implements
Inherited Members
Namespace: TheXDS.MCART.Attributes
Assembly: MCART.dll
Syntax
[AttributeUsage(AttributeTargets.Assembly|AttributeTargets.Module|AttributeTargets.Class)]
[Obsolete("Use LicenseUriAttribute instead.")]
public sealed class LicenseFileAttribute : TextAttribute, IValueAttribute<string>
Constructors
| Edit this page View SourceLicenseFileAttribute(string)
Initializes a new instance of the class LicenseFileAttribute.
Declaration
public LicenseFileAttribute(string licenseFile)
Parameters
Type | Name | Description |
---|---|---|
string | licenseFile | Path of the attached license file. |
Methods
| Edit this page View SourceReadLicense()
Reads the license file specified by this attribute.
Declaration
public string ReadLicense()
Returns
Type | Description |
---|---|
string | The content of the specified license file. |