ObfuscateAssemblyAttribute::AssemblyIsPrivate Property

 

Gets a Boolean value indicating whether the assembly was marked private.

Namespace:   System.Reflection
Assembly:  mscorlib (in mscorlib.dll)

public:
property bool AssemblyIsPrivate {
	bool get();
}

Property Value

Type: System::Boolean

true if the assembly was marked private; otherwise, false.

A private assembly is used only by the application of which it is a part, and not by other software.

System_CAPS_importantImportant

Applying this attribute does not automatically obfuscate the assembly. Applying the attribute is an alternative to creating a configuration file for the obfuscation tool. That is, it merely provides instructions for an obfuscation tool. Microsoft recommends that vendors of obfuscation tools follow the semantics described here. However, there is no guarantee that a particular tool follows Microsoft recommendations.

The following code example shows how the attribute constructor sets the AssemblyIsPrivate property to true, to specify that an assembly is private. The StripAfterObfuscation property is false, to prevent the obfuscation tool from stripping the attribute after processing.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show: