ObfuscateAssemblyAttribute.StripAfterObfuscation Propriedade

Definição

Obtém ou define um valor Boolean que indica se a ferramenta de ocultamento deve remover o atributo após o processamento.Gets or sets a Boolean value indicating whether the obfuscation tool should remove the attribute after processing.

public:
 property bool StripAfterObfuscation { bool get(); void set(bool value); };
public bool StripAfterObfuscation { get; set; }
member this.StripAfterObfuscation : bool with get, set
Public Property StripAfterObfuscation As Boolean

Valor da propriedade

Boolean

true se a ferramenta de ofuscação deve remover o atributo após o processamento; caso contrário, false .true if the obfuscation tool should remove the attribute after processing; otherwise, false. O valor padrão para essa propriedade é true.The default value for this property is true.

Exemplos

O exemplo de código a seguir mostra o ObfuscateAssemblyAttribute atributo com a StripAfterObfuscation propriedade definida como false , para impedir que a ferramenta de ofuscação removida o atributo após o processamento.The following code example shows the ObfuscateAssemblyAttribute attribute with the StripAfterObfuscation property set to false, to prevent the obfuscation tool from stripping the attribute after processing.

using System;
using System.Reflection;

[assembly: ObfuscateAssemblyAttribute(true,
    StripAfterObfuscation=false)]
Imports System.Reflection

<Assembly: ObfuscateAssemblyAttribute(False, _
    StripAfterObfuscation:=False)>

Comentários

Os atributos não devem ser removidos se a biblioteca for incluída como parte de outro aplicativo e ofuscada como parte desse aplicativo.Attributes should not be stripped if your library will be included as part of another application, and obfuscated as part of that application.

Especificar que as ferramentas de ofuscação devem remover o ObfuscateAssemblyAttribute não afeta as instâncias do ObfuscationAttribute que foram aplicadas a tipos e membros dentro do assembly.Specifying that obfuscation tools should strip the ObfuscateAssemblyAttribute does not affect instances of ObfuscationAttribute that have been applied to types and members within the assembly.

Importante

A aplicação desse atributo não ofusca automaticamente o assembly.Applying this attribute does not automatically obfuscate the assembly. A aplicação do atributo é uma alternativa à criação de um arquivo de configuração para a ferramenta de ofuscação.Applying the attribute is an alternative to creating a configuration file for the obfuscation tool. Ou seja, ele simplesmente fornece instruções para uma ferramenta de ofuscação.That is, it merely provides instructions for an obfuscation tool. A Microsoft recomenda que os fornecedores de ferramentas de ofuscação sigam a semântica descrita aqui.Microsoft recommends that vendors of obfuscation tools follow the semantics described here. No entanto, não há nenhuma garantia de que uma ferramenta específica segue as recomendações da Microsoft.However, there is no guarantee that a particular tool follows Microsoft recommendations.

Aplica-se a