System.ComponentModel.LicenseProviderAttribute Class

Specifies the System.ComponentModel.LicenseProvider to use with a class. This class cannot be inherited.

See Also: LicenseProviderAttribute Members

Syntax

[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=false, Inherited=false)]
public sealed class LicenseProviderAttribute : Attribute

Remarks

When you create a component that you want to license, you must specify the System.ComponentModel.LicenseProvider by marking the component with a System.ComponentModel.LicenseProviderAttribute.

Use the LicenseProviderAttribute.LicenseProvider property to get the Type of the System.ComponentModel.LicenseProvider.

For more information about attributes, see Extending Metadata Using Attributes. For more information about licensing, see How to: License Components and Controls.

Note:

The System.Security.Permissions.HostProtectionAttribute attribute applied to this class has the following System.Security.Permissions.HostProtectionAttribute.Resources property value: System.Security.Permissions.HostProtectionResource.SharedState. The System.Security.Permissions.HostProtectionAttribute does not affect desktop applications (which are typically started by double-clicking an icon, typing a command, or entering a URL in a browser). For more information, see the System.Security.Permissions.HostProtectionAttribute class or SQL Server Programming and Host Protection Attributes.

Requirements

Namespace: System.ComponentModel
Assembly: System (in System.dll)
Assembly Versions: 1.0.3300.0, 1.0.5000.0, 2.0.0.0, 4.0.0.0