Udostępnij za pośrednictwem


System.Reflection namespaces

The System.Reflection, System.Reflection.Context, and System.Reflection.Emit namespaces contain types that provide a managed view of loaded types, methods, and fields, and that enable customized reflection contexts.

This topic displays the types in the System.Reflection, System.Reflection.Context, and System.Reflection.Emit namespaces that are included in the .NET for Windows Store apps. Note that the .NET for Windows Store apps does not include all the members of each type. For information about individual types, see the linked topics. The documentation for a type indicates which members are included in the .NET for Windows Store apps.

System.Reflection namespace

Types supported in the .NET for Windows Store apps

Description

AmbiguousMatchException

The exception that is thrown when binding to a member results in more than one member matching the binding criteria. This class cannot be inherited.

Assembly

Represents an assembly, which is a reusable, versionable, and self-describing building block of a common language runtime application.

AssemblyCompanyAttribute

Defines a company name custom attribute for an assembly manifest.

AssemblyConfigurationAttribute

Specifies the build configuration, such as retail or debug, for an assembly.

AssemblyContentType

Provides information about the type of code contained in an assembly.

AssemblyCopyrightAttribute

Defines a copyright custom attribute for an assembly manifest.

AssemblyCultureAttribute

Specifies which culture the assembly supports.

AssemblyDefaultAliasAttribute

Defines a friendly default alias for an assembly manifest.

AssemblyDelaySignAttribute

Specifies that the assembly is not fully signed when created.

AssemblyDescriptionAttribute

Provides a text description for an assembly.

AssemblyFileVersionAttribute

Instructs a compiler to use a specific version number for the Win32 file version resource. The Win32 file version is not required to be the same as the assembly's version number.

AssemblyFlagsAttribute

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.

AssemblyInformationalVersionAttribute

Defines additional version information for an assembly manifest.

AssemblyKeyFileAttribute

Specifies the name of a file containing the key pair used to generate a strong name.

AssemblyKeyNameAttribute

Specifies the name of a key container within the CSP containing the key pair used to generate a strong name.

AssemblyMetadataAttribute

Defines a key/value metadata pair for the decorated assembly.

AssemblyName

Describes an assembly's unique identity in full.

AssemblyNameFlags

Provides information about an Assembly reference.

AssemblyProductAttribute

Defines a product name custom attribute for an assembly manifest.

AssemblySignatureKeyAttribute

Specifies the signature key for the assembly.

AssemblyTitleAttribute

Specifies a description for an assembly.

AssemblyTrademarkAttribute

Defines a trademark custom attribute for an assembly manifest.

AssemblyVersionAttribute

Specifies the version of the assembly being attributed.

CallingConventions

Defines the valid calling conventions for a method.

ConstructorInfo

Discovers the attributes of a class constructor and provides access to constructor metadata.

CustomAttributeData

Provides access to custom attribute data for assemblies, modules, types, members and parameters that are loaded into the reflection-only context.

CustomAttributeExtensions

Contains static methods for retrieving custom attributes.

CustomAttributeNamedArgument

Represents a named argument of a custom attribute in the reflection-only context.

CustomAttributeTypedArgument

Represents an argument of a custom attribute in the reflection-only context, or an element of an array argument.

DefaultMemberAttribute

Defines the member of a type that is the default member used by InvokeMember.

EventAttributes

Specifies the attributes of an event.

EventInfo

Discovers the attributes of an event and provides access to event metadata.

FieldAttributes

Specifies flags that describe the attributes of a field.

FieldInfo

Discovers the attributes of a field and provides access to field metadata.

GenericParameterAttributes

Describes the constraints on a generic type parameter of a generic type or method.

InterfaceMapping

Retrieves the mapping of an interface into the actual methods on a class that implements that interface.

IntrospectionExtensions

Contains methods for converting System.Type objects.

IReflectableType

Represents a type that you can reflect over.

LocalVariableInfo

Discovers the attributes of a local variable and provides access to local variable metadata.

ManifestResourceInfo

Provides access to manifest resources, which are XML files that describe application dependencies.

MemberInfo

Obtains information about the attributes of a member and provides access to member metadata.

MethodAttributes

Specifies flags for method attributes. These flags are defined in the corhdr.h file.

MethodBase

Provides information about methods and constructors.

MethodImplAttributes

Specifies flags for the attributes of a method implementation.

MethodInfo

Discovers the attributes of a method and provides access to method metadata.

Missing

Represents a missing Object. This class cannot be inherited.

Module

Performs reflection on a module.

ParameterAttributes

Defines the attributes that can be associated with a parameter. These are defined in CorHdr.h.

ParameterInfo

Discovers the attributes of a parameter and provides access to parameter metadata.

PropertyAttributes

Defines the attributes that can be associated with a property. These attribute values are defined in corhdr.h.

PropertyInfo

Discovers the attributes of a property and provides access to property metadata.

ReflectionContext

Represents a context that can provide reflection objects.

ReflectionTypeLoadException

The exception that is thrown by the ModuleGetTypes() method if any of the classes in a module cannot be loaded. This class cannot be inherited.

ResourceLocation

Specifies the resource location.

RuntimeReflectionExtensions

Provides methods that retrieve information about types at run time.

TargetInvocationException

The exception that is thrown by methods invoked through reflection. This class cannot be inherited.

TargetParameterCountException

The exception that is thrown when the number of parameters for an invocation does not match the number expected. This class cannot be inherited.

TypeAttributes

Specifies type attributes.

TypeInfo

Represents type declarations: class types, interface types, array types, value types, enumeration types, type parameters, generic type definitions, and open or closed constructed generic types.

System.Reflection.Context namespace

Types supported in the .NET for Windows Store apps

Description

CustomReflectionContext

Represents a customizable reflection context.

System.Reflection.Emit namespace

Types supported in the .NET for Windows Store apps

Description

FlowControl

Describes how an instruction alters the flow of control.

OpCode

Describes a Microsoft intermediate language (MSIL) instruction.

OpCodes

Provides field representations of the Microsoft Intermediate Language (MSIL) instructions for emission by the ILGenerator class members (such as Emit).

OpCodeType

Describes the types of the Microsoft intermediate language (MSIL) instructions.

OperandType

Describes the operand type of Microsoft intermediate language (MSIL) instruction.

PackingSize

Specifies one of two factors that determine the memory alignment of fields when a type is marshaled.

StackBehaviour

Describes how values are pushed onto a stack or popped off a stack.

See Also

Concepts

.NET for Windows Store apps APIs