ClientBuildManagerParameter Classe
Definição
Contém valores passados para o compilador do ASP.NET durante a pré-compilação.Contains values passed to the ASP.NET compiler during precompilation.
public ref class ClientBuildManagerParameter
[System.Serializable]
public class ClientBuildManagerParameter
[<System.Serializable>]
type ClientBuildManagerParameter = class
Public Class ClientBuildManagerParameter
- Herança
-
ClientBuildManagerParameter
- Atributos
Exemplos
O exemplo de código a seguir é parte de um exemplo de código encontrado na ClientBuildManager visão geral da classe.The following code example is part of a code example found in the ClientBuildManager class overview. No exemplo, um ClientBuildManagerParameter objeto é criado e seus valores são definidos.In the example, a ClientBuildManagerParameter object is created and its values set. O assembly resultante terá um nome forte com base no arquivo de chave fornecido e irá pré-compilar de acordo com os PrecompilationFlags valores fornecidos.The resulting assembly will have a strong name based on the provided key file and will precompile according to the provided PrecompilationFlags values.
_cbmParameter = new ClientBuildManagerParameter();
_cbmParameter.PrecompilationFlags = _flags;
_cbmParameter.StrongNameKeyFile = _keyFile;
builder = new
ClientBuildManager(_vPath, _pPath, _tPath, _cbmParameter);
_cbmParameter = New ClientBuildManagerParameter()
_cbmParameter.PrecompilationFlags = _flags
_cbmParameter.StrongNameKeyFile = _keyFile
builder = New ClientBuildManager(_vPath, _pPath, _tPath, _cbmParameter)
Comentários
As páginas da Web e os arquivos de código do ASP.NET podem ser pré-compilados para facilitar uma resposta mais rápida para os usuários e permitir a implantação do site sem implantar o código-fonte.ASP.NET Web pages and code files can be precompiled to facilitate a faster response for users and allow for the deployment of the site without deploying the source code. Para obter mais informações sobre como pré-compilar um site ASP.NET, consulte visão geral da pré-compilação do projeto de site do ASP.net.For more information on precompiling an ASP.NET Web site, see ASP.NET Web Site Project Precompilation Overview.
A ClientBuildManagerParameter classe armazena valores que são usados durante a pré-compilação.The ClientBuildManagerParameter class stores values that are used during precompilation. A PrecompilationFlags propriedade determina como o assembly será compilado.The PrecompilationFlags property determines how the assembly will be built. Por exemplo, você pode definir PrecompilationFlags como Clean para recompilar qualquer componente compilado anteriormente ou defini-lo como OverwriteTarget para permitir que o assembly resultante substitua qualquer componente no diretório de destino.For example, you can set PrecompilationFlags to Clean to recompile any previously compiled components, or set it to OverwriteTarget to permit the resulting assembly to overwrite any components in the target directory. O PrecompilationFlags enumerador tem um FlagsAttribute atributo que permite uma combinação de bits de valores de membros.The PrecompilationFlags enumerator has a FlagsAttribute attribute that allows a bitwise combination of its member values. A PrecompilationFlags propriedade pode conter mais de um valor da PrecompilationFlags enumeração para especificar uma combinação de comportamentos de pré-compilação.The PrecompilationFlags property can contain more than one value from the PrecompilationFlags enumeration to specify a combination of precompilation behaviors.
A StrongNameKeyContainer propriedade ou a StrongNameKeyFile Propriedade recebe um valor para criar um assembly de nome forte.Either the StrongNameKeyContainer property or the StrongNameKeyFile property is assigned a value to create a strong-named assembly. Os dois valores não precisam ser definidos para criar um assembly de nome forte.Both values do not need to be set to create a strong-named assembly.
Um ClientBuildManagerParameter objeto é passado para o ClientBuildManager objeto por meio do ClientBuildManager Construtor.A ClientBuildManagerParameter object is passed to the ClientBuildManager object through the ClientBuildManager constructor.
Construtores
| ClientBuildManagerParameter() |
Inicializa uma nova instância da classe ClientBuildManagerParameter.Initializes a new instance of the ClientBuildManagerParameter class. |
Propriedades
| ExcludedVirtualPaths |
Obtém ou define caminhos virtuais excluídos.Gets or sets excluded virtual paths. |
| PrecompilationFlags |
Obtém ou define os sinalizadores que determinam o comportamento de pré-compilação.Gets or sets the flags that determine precompilation behavior. |
| StrongNameKeyContainer |
Obtém ou define o contêiner de chave usado durante a compilação.Gets or sets the key container used during compilation. |
| StrongNameKeyFile |
Obtém ou define o arquivo de chave usado durante a compilação.Gets or sets the key file used during compilation. |
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) |
| 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) |
| ToString() |
Retorna uma cadeia de caracteres que representa o objeto atual.Returns a string that represents the current object. (Herdado de Object) |