mscorlib(4.0.0.0) API with additions
System.Reflection.ObfuscationAttribute Class Reference

Instructs obfuscation tools to take the specified actions for an assembly, type, or member. More...

Inheritance diagram for System.Reflection.ObfuscationAttribute:
[legend]
Collaboration diagram for System.Reflection.ObfuscationAttribute:
[legend]

Properties

bool StripAfterObfuscation [get, set]
 Gets or sets a T:System.Boolean value indicating whether the obfuscation tool should remove this attribute after processing. More...
 
bool Exclude [get, set]
 Gets or sets a T:System.Boolean value indicating whether the obfuscation tool should exclude the type or member from obfuscation. More...
 
bool ApplyToMembers [get, set]
 Gets or sets a T:System.Boolean value indicating whether the attribute of a type is to apply to the members of the type. More...
 
string Feature [get, set]
 Gets or sets a string value that is recognized by the obfuscation tool, and which specifies processing options. More...
 

Additional Inherited Members

- Public Member Functions inherited from System.Attribute
override bool Equals (object obj)
 Returns a value that indicates whether this instance is equal to a specified object. More...
 
override int GetHashCode ()
 Returns the hash code for this instance. More...
 
virtual bool Match (object obj)
 When overridden in a derived class, returns a value that indicates whether this instance equals a specified object. More...
 
virtual bool IsDefaultAttribute ()
 When overridden in a derived class, indicates whether the value of this instance is the default value for the derived class. More...
 
- Static Public Member Functions inherited from System.Attribute
static Attribute [] GetCustomAttributes (MemberInfo element, Type type)
 Retrieves an array of the custom attributes applied to a member of a type. Parameters specify the member, and the type of the custom attribute to search for. More...
 
static Attribute [] GetCustomAttributes (MemberInfo element, Type type, bool inherit)
 Retrieves an array of the custom attributes applied to a member of a type. Parameters specify the member, the type of the custom attribute to search for, and whether to search ancestors of the member. More...
 
static Attribute [] GetCustomAttributes (MemberInfo element)
 Retrieves an array of the custom attributes applied to a member of a type. A parameter specifies the member. More...
 
static Attribute [] GetCustomAttributes (MemberInfo element, bool inherit)
 Retrieves an array of the custom attributes applied to a member of a type. Parameters specify the member, the type of the custom attribute to search for, and whether to search ancestors of the member. More...
 
static bool IsDefined (MemberInfo element, Type attributeType)
 Determines whether any custom attributes are applied to a member of a type. Parameters specify the member, and the type of the custom attribute to search for. More...
 
static bool IsDefined (MemberInfo element, Type attributeType, bool inherit)
 Determines whether any custom attributes are applied to a member of a type. Parameters specify the member, the type of the custom attribute to search for, and whether to search ancestors of the member. More...
 
static Attribute GetCustomAttribute (MemberInfo element, Type attributeType)
 Retrieves a custom attribute applied to a member of a type. Parameters specify the member, and the type of the custom attribute to search for. More...
 
static Attribute GetCustomAttribute (MemberInfo element, Type attributeType, bool inherit)
 Retrieves a custom attribute applied to a member of a type. Parameters specify the member, the type of the custom attribute to search for, and whether to search ancestors of the member. More...
 
static Attribute [] GetCustomAttributes (ParameterInfo element)
 Retrieves an array of the custom attributes applied to a method parameter. A parameter specifies the method parameter. More...
 
static Attribute [] GetCustomAttributes (ParameterInfo element, Type attributeType)
 Retrieves an array of the custom attributes applied to a method parameter. Parameters specify the method parameter, and the type of the custom attribute to search for. More...
 
static Attribute [] GetCustomAttributes (ParameterInfo element, Type attributeType, bool inherit)
 Retrieves an array of the custom attributes applied to a method parameter. Parameters specify the method parameter, the type of the custom attribute to search for, and whether to search ancestors of the method parameter. More...
 
static Attribute [] GetCustomAttributes (ParameterInfo element, bool inherit)
 Retrieves an array of the custom attributes applied to a method parameter. Parameters specify the method parameter, and whether to search ancestors of the method parameter. More...
 
static bool IsDefined (ParameterInfo element, Type attributeType)
 Determines whether any custom attributes are applied to a method parameter. Parameters specify the method parameter, and the type of the custom attribute to search for. More...
 
static bool IsDefined (ParameterInfo element, Type attributeType, bool inherit)
 Determines whether any custom attributes are applied to a method parameter. Parameters specify the method parameter, the type of the custom attribute to search for, and whether to search ancestors of the method parameter. More...
 
static Attribute GetCustomAttribute (ParameterInfo element, Type attributeType)
 Retrieves a custom attribute applied to a method parameter. Parameters specify the method parameter, and the type of the custom attribute to search for. More...
 
static Attribute GetCustomAttribute (ParameterInfo element, Type attributeType, bool inherit)
 Retrieves a custom attribute applied to a method parameter. Parameters specify the method parameter, the type of the custom attribute to search for, and whether to search ancestors of the method parameter. More...
 
static Attribute [] GetCustomAttributes (Module element, Type attributeType)
 Retrieves an array of the custom attributes applied to a module. Parameters specify the module, and the type of the custom attribute to search for. More...
 
static Attribute [] GetCustomAttributes (Module element)
 Retrieves an array of the custom attributes applied to a module. A parameter specifies the module. More...
 
static Attribute [] GetCustomAttributes (Module element, bool inherit)
 Retrieves an array of the custom attributes applied to a module. Parameters specify the module, and an ignored search option. More...
 
static Attribute [] GetCustomAttributes (Module element, Type attributeType, bool inherit)
 Retrieves an array of the custom attributes applied to a module. Parameters specify the module, the type of the custom attribute to search for, and an ignored search option. More...
 
static bool IsDefined (Module element, Type attributeType)
 Determines whether any custom attributes of a specified type are applied to a module. Parameters specify the module, and the type of the custom attribute to search for. More...
 
static bool IsDefined (Module element, Type attributeType, bool inherit)
 Determines whether any custom attributes are applied to a module. Parameters specify the module, the type of the custom attribute to search for, and an ignored search option. More...
 
static Attribute GetCustomAttribute (Module element, Type attributeType)
 Retrieves a custom attribute applied to a module. Parameters specify the module, and the type of the custom attribute to search for. More...
 
static Attribute GetCustomAttribute (Module element, Type attributeType, bool inherit)
 Retrieves a custom attribute applied to a module. Parameters specify the module, the type of the custom attribute to search for, and an ignored search option. More...
 
static Attribute [] GetCustomAttributes (Assembly element, Type attributeType)
 Retrieves an array of the custom attributes applied to an assembly. Parameters specify the assembly, and the type of the custom attribute to search for. More...
 
static Attribute [] GetCustomAttributes (Assembly element, Type attributeType, bool inherit)
 Retrieves an array of the custom attributes applied to an assembly. Parameters specify the assembly, the type of the custom attribute to search for, and an ignored search option. More...
 
static Attribute [] GetCustomAttributes (Assembly element)
 Retrieves an array of the custom attributes applied to an assembly. A parameter specifies the assembly. More...
 
static Attribute [] GetCustomAttributes (Assembly element, bool inherit)
 Retrieves an array of the custom attributes applied to an assembly. Parameters specify the assembly, and an ignored search option. More...
 
static bool IsDefined (Assembly element, Type attributeType)
 Determines whether any custom attributes are applied to an assembly. Parameters specify the assembly, and the type of the custom attribute to search for. More...
 
static bool IsDefined (Assembly element, Type attributeType, bool inherit)
 Determines whether any custom attributes are applied to an assembly. Parameters specify the assembly, the type of the custom attribute to search for, and an ignored search option. More...
 
static Attribute GetCustomAttribute (Assembly element, Type attributeType)
 Retrieves a custom attribute applied to a specified assembly. Parameters specify the assembly and the type of the custom attribute to search for. More...
 
static Attribute GetCustomAttribute (Assembly element, Type attributeType, bool inherit)
 Retrieves a custom attribute applied to an assembly. Parameters specify the assembly, the type of the custom attribute to search for, and an ignored search option. More...
 
- Public Attributes inherited from System.Attribute
virtual object TypeId => GetType()
 When implemented in a derived class, gets a unique identifier for this T:System.Attribute. More...
 
- Protected Member Functions inherited from System.Attribute
 Attribute ()
 Initializes a new instance of the T:System.Attribute class. More...
 

Detailed Description

Instructs obfuscation tools to take the specified actions for an assembly, type, or member.

Definition at line 8 of file ObfuscationAttribute.cs.

Property Documentation

◆ ApplyToMembers

bool System.Reflection.ObfuscationAttribute.ApplyToMembers
getset

Gets or sets a T:System.Boolean value indicating whether the attribute of a type is to apply to the members of the type.

Returns
true if the attribute is to apply to the members of the type; otherwise, false. The default is true.

Definition at line 52 of file ObfuscationAttribute.cs.

◆ Exclude

bool System.Reflection.ObfuscationAttribute.Exclude
getset

Gets or sets a T:System.Boolean value indicating whether the obfuscation tool should exclude the type or member from obfuscation.

Returns
true if the type or member to which this attribute is applied should be excluded from obfuscation; otherwise, false. The default is true.

Definition at line 37 of file ObfuscationAttribute.cs.

◆ Feature

string System.Reflection.ObfuscationAttribute.Feature
getset

Gets or sets a string value that is recognized by the obfuscation tool, and which specifies processing options.

Returns
A string value that is recognized by the obfuscation tool, and which specifies processing options. The default is "all".

Definition at line 66 of file ObfuscationAttribute.cs.

◆ StripAfterObfuscation

bool System.Reflection.ObfuscationAttribute.StripAfterObfuscation
getset

Gets or sets a T:System.Boolean value indicating whether the obfuscation tool should remove this attribute after processing.

Returns
true if an obfuscation tool should remove the attribute after processing; otherwise, false. The default is true.

Definition at line 22 of file ObfuscationAttribute.cs.


The documentation for this class was generated from the following file: