ObfuscationAttribute.StripAfterObfuscation プロパティ
アセンブリ: mscorlib (mscorlib.dll 内)

Dim instance As ObfuscationAttribute Dim value As Boolean value = instance.StripAfterObfuscation instance.StripAfterObfuscation = value
/** @property */ public boolean get_StripAfterObfuscation () /** @property */ public void set_StripAfterObfuscation (boolean value)
public function get StripAfterObfuscation () : boolean public function set StripAfterObfuscation (value : boolean)
隠ぺいツールが処理後に属性を削除する必要がある場合は true。それ以外の場合は false。既定値は true です。

ライブラリが別のアプリケーションの一部として含まれ、そのアプリケーションの一部として隠ぺいされる場合は、属性を削除しないでください。
![]() |
---|
この属性を適用しても、属性を適用するコード エンティティの隠ぺいが自動的に行われるわけではありません。この属性の適用は、隠ぺいツールの構成ファイルを作成する代わりとして行われます。つまり、隠ぺいツールに対する指示を出すだけです。Microsoft では、隠ぺいツールの販売元が次に説明するセマンティクスに従うことを推奨しています。ただし、特定のツールが Microsoft の推奨するセマンティクスに従っているという保証はありません。 |

隠ぺいツールが隠ぺい後に属性を削除しないように、StripAfterObfuscation プロパティが false に設定されている ObfuscationAttribute のコード例を次に示します。Exclude プロパティの既定値が true であるため、Exclude プロパティに false を指定して、MethodA が隠ぺいから除外されないようにする必要があります。
このコードは、コンパイルして実行することのできる例の一部です。詳細については、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 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
[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() {} }

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


- ObfuscationAttribute.StripAfterObfuscation プロパティのページへのリンク