LicenseContext Classe

Definição

Especifica quando você pode usar um objeto licenciado e oferece uma maneira de obter os serviços adicionais necessários para dar suporte a licenças em execução em seu domínio.Specifies when you can use a licensed object and provides a way of obtaining additional services needed to support licenses running within its domain.

public ref class LicenseContext : IServiceProvider
public class LicenseContext : IServiceProvider
type LicenseContext = class
    interface IServiceProvider
Public Class LicenseContext
Implements IServiceProvider
Herança
LicenseContext
Derivado
Implementações

Comentários

Essa classe fornece o padrão LicenseContext .This class provides the default LicenseContext. Ele implementa apenas o suporte de tempo de execução e não oferece suporte a chaves de licença salvas.It implements only run-time support and does not support saved license keys.

Notas aos Herdeiros

Se você quiser implementar o suporte de licença em tempo de design, deverá herdar dessa classe e substituir os seguintes membros: UsageMode , GetSavedLicenseKey(Type, Assembly) , GetService(Type) e SetSavedLicenseKey(Type, String) .If you want to implement design-time license support, you must inherit from this class, and override the following members: UsageMode, GetSavedLicenseKey(Type, Assembly), GetService(Type), and SetSavedLicenseKey(Type, String). Se você quiser implementar chaves de licença salvas, substitua GetSavedLicenseKey(Type, Assembly) os SetSavedLicenseKey(Type, String) métodos e.If you want to implement saved license keys, override the GetSavedLicenseKey(Type, Assembly) and SetSavedLicenseKey(Type, String) methods.

Para obter mais informações sobre licenciamento, consulte como: licenciar componentes e controles.For more information about licensing, see How to: License Components and Controls.

Construtores

LicenseContext()

Inicializa uma nova instância da classe LicenseContext.Initializes a new instance of the LicenseContext class.

Propriedades

UsageMode

Quando substituído em uma classe derivada, obtém um valor que especifica quando você pode usar uma licença.When overridden in a derived class, gets a value that specifies when you can use a license.

Métodos

Equals(Object)

Determina se o objeto especificado é igual ao objeto atual.Determines whether the specified object is equal to the current object.

(Herdado de Object)
GetHashCode()

Serve como a função de hash padrão.Serves as the default hash function.

(Herdado de Object)
GetSavedLicenseKey(Type, Assembly)

Quando substituído em uma classe derivada, retorna uma chave de licença salva para o tipo especificado do assembly de recurso especificado.When overridden in a derived class, returns a saved license key for the specified type, from the specified resource assembly.

GetService(Type)

Obtém o serviço solicitado, se ele está disponível.Gets the requested service, if it is available.

GetType()

Obtém o Type da instância atual.Gets the Type of the current instance.

(Herdado de Object)
MemberwiseClone()

Cria uma cópia superficial do Object atual.Creates a shallow copy of the current Object.

(Herdado de Object)
SetSavedLicenseKey(Type, String)

Quando substituído em uma classe derivada, define uma chave de licença para o tipo especificado.When overridden in a derived class, sets a license key for the specified type.

ToString()

Retorna uma cadeia de caracteres que representa o objeto atual.Returns a string that represents the current object.

(Herdado de Object)

Aplica-se a

Confira também