Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Specifies a bitwise combination of AssemblyNameFlags flags for an assembly, describing just-in-time (JIT) compiler options, whether the assembly is retargetable, and whether it has a full or tokenized public key. This class cannot be inherited.
Inheritance Hierarchy
System. . :: . .Object
System. . :: . .Attribute
System.Reflection..::..AssemblyFlagsAttribute
Namespace: System.Reflection
Assembly: mscorlib (in mscorlib.dll)
Syntax
'Declaration
<AttributeUsageAttribute(AttributeTargets.Assembly, AllowMultiple := False)> _
Public NotInheritable Class AssemblyFlagsAttribute _
Inherits Attribute
[AttributeUsageAttribute(AttributeTargets.Assembly, AllowMultiple = false)]
public sealed class AssemblyFlagsAttribute : Attribute
[AttributeUsageAttribute(AttributeTargets::Assembly, AllowMultiple = false)]
public ref class AssemblyFlagsAttribute sealed : public Attribute
[<Sealed>]
[<AttributeUsageAttribute(AttributeTargets.Assembly, AllowMultiple = false)>]
type AssemblyFlagsAttribute =
class
inherit Attribute
end
public final class AssemblyFlagsAttribute extends Attribute
The AssemblyFlagsAttribute type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() |
AssemblyFlagsAttribute(AssemblyNameFlags) | Initializes a new instance of the AssemblyFlagsAttribute class with the specified combination of AssemblyNameFlags flags. |
![]() |
AssemblyFlagsAttribute(UInt32) | Initializes a new instance of the AssemblyFlagsAttribute class with the specified combination of AssemblyNameFlags flags, cast as an unsigned integer value. |
Top
Properties
Name | Description | |
---|---|---|
![]() |
Flags | Gets an unsigned integer value representing the combination of AssemblyNameFlags flags specified when this attribute instance was created. |
Top
Methods
Name | Description | |
---|---|---|
![]() |
Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() |
GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
Remarks
The AssemblyNameFlags enumeration describes the assembly characteristics that can be set using this attribute.
To access the flags that have been specified for an assembly, use the Assembly.GetName property to obtain an AssemblyName object, then use the AssemblyName.Flags property to obtain an AssemblyNameFlags value.
To specify AssemblyNameFlags flags for a dynamic assembly, set the AssemblyName.Flags property of the AssemblyName object that you pass to the AppDomain.DefineDynamicAssembly method.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.