Jo Shields 3c1f479b9d Imported Upstream version 4.0.0~alpha1
Former-commit-id: 806294f5ded97629b74c85c09952f2a74fe182d9
2015-04-07 09:35:12 +01:00

36 lines
1.4 KiB
C#

//------------------------------------------------------------------------------
// <copyright file="License.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
//------------------------------------------------------------------------------
namespace System.ComponentModel {
using Microsoft.Win32;
using System;
using System.Diagnostics;
using System.Security.Permissions;
/// <include file='doc\License.uex' path='docs/doc[@for="License"]/*' />
/// <devdoc>
/// <para>Provides the <see langword='abstract'/> base class for all licenses. A license is
/// granted to a specific instance of a component.</para>
/// </devdoc>
[HostProtection(SharedState = true)]
public abstract class License : IDisposable
{
/// <include file='doc\License.uex' path='docs/doc[@for="License.LicenseKey"]/*' />
/// <devdoc>
/// <para>When overridden in a derived class, gets the license key granted to this component.</para>
/// </devdoc>
public abstract string LicenseKey { get; }
/// <include file='doc\License.uex' path='docs/doc[@for="License.Dispose"]/*' />
/// <devdoc>
/// <para>When overridden in a derived class, releases the license.</para>
/// </devdoc>
public abstract void Dispose();
}
}