Class LicenseUriAttribute
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|AttributeTargets.Field)]
public sealed class LicenseUriAttribute : LicenseAttributeBase, IValueAttribute<string>
Constructors
| Edit this page View SourceLicenseUriAttribute(string)
Sets an external license file to associate with the element.
Declaration
public LicenseUriAttribute(string licenseUri)
Parameters
| Type | Name | Description |
|---|---|---|
| string | licenseUri | Uri path of the license. |
Properties
| Edit this page View SourceUri
Gets the storage path of the license.
Declaration
public Uri Uri { get; }
Property Value
| Type | Description |
|---|---|
| Uri |
Methods
| Edit this page View SourceGetLicense()
Gets a license from the specified Uri for this attribute.
Declaration
public License GetLicense()
Returns
| Type | Description |
|---|---|
| License | A license from the specified Uri for this attribute. |
GetLicense(object)
Gets a license from the specified Uri for this attribute.
Declaration
public override License GetLicense(object context)
Parameters
| Type | Name | Description |
|---|---|---|
| object | context | Object from which this attribute was extracted. |
Returns
| Type | Description |
|---|---|
| License | A license from the specified Uri for this attribute. |