ObfuscationAttribute.StripAfterObfuscation 속성

정의

난독 처리 도구가 처리 후 이 특성을 제거하는지 여부를 나타내는 Boolean 값을 가져오거나 설정합니다.

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

속성 값

난독 처리 도구가 처리 후 특성을 제거하면 true이고, 그렇지 않으면 false입니다. 기본값은 true입니다.

예제

다음 코드 예제에서는 난독 처리 도구가 난독 처리 후 특성을 제거하지 않도록 속성 false 이 인 를 보여 ObfuscationAttributeStripAfterObfuscation 줍니다. 속성의 Exclude 기본값 Exclude 은 이므로 난독 처리에서 제외 MethodA 하지 않도록 속성을 true지정 false 해야 합니다.

이 코드는 컴파일 및 실행할 수 있는 더 큰 예제의 일부입니다. ObfuscationAttribute 클래스를 참조하세요.

[ObfuscationAttribute(Exclude=true, ApplyToMembers=false)]
public class Type2
{

    // The exclusion of the type is not applied to its members,
    // however in order to mark the member with the "default"
    // feature it is necessary to specify Exclude=false,
    // because the default value of Exclude is true. The tool
    // should not strip this attribute after obfuscation.
    [ObfuscationAttribute(Exclude=false, Feature="default",
        StripAfterObfuscation=false)]
    public void MethodA() {}

    // This member is marked for obfuscation, because the
    // exclusion of the type is not applied to its members.
    public void MethodB() {}
}
<ObfuscationAttribute(Exclude:=True, ApplyToMembers:=False)> _
Public Class Type2

    ' The exclusion of the type is not applied to its members,
    ' however in order to mark the member with the "default" 
    ' feature it is necessary to specify Exclude:=False,
    ' because the default value of Exclude is True. The tool
    ' should not strip this attribute after obfuscation.
    <ObfuscationAttribute(Exclude:=False, _
        Feature:="default", StripAfterObfuscation:=False)> _
    Public Sub MethodA()
    End Sub

    ' This member is marked for obfuscation, because the 
    ' exclusion of the type is not applied to its members.
    Public Sub MethodB()
    End Sub

End Class

설명

라이브러리는 다른 애플리케이션의 일부분으로 포함 되며 해당 애플리케이션의 일부분으로 난독 처리 하는 경우 특성을 제거 해야 합니다.

중요

이 특성을 적용해도 해당 특성을 적용하는 코드 엔터티가 자동으로 난독 처리되지는 않습니다. 특성을 적용하는 것은 난독 처리 도구에 대한 구성 파일을 만드는 대안입니다. 즉, 난독 처리 도구에 대한 지침만 제공합니다. 난독 처리 도구 공급업체는 여기에 설명된 의미 체계를 따르는 것이 좋습니다. 그러나 특정 도구가 Microsoft 권장 사항을 따른다는 보장은 없습니다.

적용 대상