Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

LicenseProviderAttribute Class

Specifies the LicenseProvider to use with a class.

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

System.Object
   System.Attribute
      System.ComponentModel.LicenseProviderAttribute

[Visual Basic]
<AttributeUsage(AttributeTargets.Class)>
NotInheritable Public Class LicenseProviderAttribute
   Inherits Attribute
[C#]
[AttributeUsage(AttributeTargets.Class)]
public sealed class LicenseProviderAttribute : Attribute
[C++]
[AttributeUsage(AttributeTargets::Class)]
public __gc __sealed class LicenseProviderAttribute : public
   Attribute
[JScript]
public
   AttributeUsage(AttributeTargets.Class)
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.

Remarks

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.

Requirements

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

Show:
© 2017 Microsoft