This documentation is archived and is not being maintained.

LicenseProviderAttribute Class

Specifies the LicenseProvider to use with a class.

For a list of all members of this type, see LicenseProviderAttribute Members.


[Visual Basic]
NotInheritable Public Class LicenseProviderAttribute
   Inherits Attribute
public sealed class LicenseProviderAttribute : Attribute
public __gc __sealed class LicenseProviderAttribute : public
class LicenseProviderAttribute extends Attribute

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


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

Use the LicenseProvider property to get the Type of the LicenseProvider.

For more information on attributes, see Attributes Overview and Extending Metadata Using Attributes. For more information on licensing, see Licensing Components and Controls.


Namespace: System.ComponentModel

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: System (in System.dll)

See Also

LicenseProviderAttribute Members | System.ComponentModel Namespace | License | LicenseContext | LicenseException | LicenseManager | LicenseProvider | LicFileLicenseProvider | LicenseUsageMode