NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

System.Reflection Namespace

Classes

Class Description
AmbiguousMatchException Represents an exception that is thrown when a method or constructor cannot be matched.
Assembly An Assembly, that is a reusable, versionable, and self-describing building block of a NGWS application. Assemblies provide the infrastructure needed to allow NGWS runtime to fully understand the contents of an application and to enforce the versioning and dependency rules defined by the application. These concepts are crucial for solving the versioning problem and for simplifying the deployment of NGWS runtime applications.
AssemblyCompanyAttribute [To be supplied.]
AssemblyConfigurationAttribute [To be supplied.]
AssemblyCopyrightAttribute [To be supplied.]
AssemblyDefaultAliasAttribute [To be supplied.]
AssemblyDescriptionAttribute [To be supplied.]
AssemblyInformationalVersionAttribute [To be supplied.]
AssemblyName This class fully describes an assembly's unique identity. An assembly's identity consists of several pieces of information including a simple textual name, a version number, a cryptographic key pair, and supported culture.
AssemblyProductAttribute [To be supplied.]
AssemblyTitleAttribute [To be supplied.]
AssemblyTrademarkAttribute [To be supplied.]
Binder Defines a set of methods that interact with reflection during the binding process. This control allows systems to apply language specific semantics to the binding and invocation process.
ConstructorInfo Retrieves the name of the class constructor method as it is stored in metadata. This name is always ".ctor"
CustomAttributeFormatException Represents an exception that is thrown when the binary format of a custom attribute is invalid.
DefaultMemberAttribute Defines the member of a type that is the default member used by InvokeMember. The default member is a name given to a type.
EventInfo Reflects an event.

Implementation of this class is not complete for this release of NGWS. This documentation is for information only.

FieldInfo Discovers the attributes of a field and provides access to field metadata. The field information is obtained from metadata. FieldInfo does not have a public constructor. Objects are created by invoking either the GetFields() or GetField() method of a Type object.

Fields are variables defined in the class. Although related to fields, properties are marked explicitly in the metadata and usually have get and set routines associated with them. FieldInfo provides access to the metadata for a field within a class and provides dynamic set and get functionality for the field. The class is not loaded into memory until invoke or get is called on the object.

InvalidFilterCriteriaException Represents an exception that is thrown in FindMembers when the filter criteria is not valid for the type of filter being used.
MemberInfo Represents the class that is used to obtain information about the members of a class
MethodBase The MethodBase class is the abstract base class for obtaining information about methods and constructors.
MethodInfo Provides information about a method and a mechanism for calling the method. Instances of MethodInfo are created by invoking either the GetMethods or GetMethod method of a Type object.
Missing This class represents a missing Object.
Module The Module class reflects a module. A module is a portable executable file of type .dll or .exe consisting of one or more classes and interfaces. One or more modules that are deployed as a unit compose an assembly.
ParameterInfo The ParameterInfo class reflects a parameter. Instances of this class are used to obtain information about the type of a parameter, the default value, etc.
Pointer [To be supplied.]
PropertyInfo The PropertyInfo class reflects a property.

Properties are logically the same as fields. A property is a named aspect of an object's state whose value is typically accessible through get and set-accessors. Properties may be read-only, in which case a set routine is not supported. Initializes an instance of the PropertyInfo class.

ReflectionTypeLoadException The ReflectionTypeLoadException class represents the exceptions thrown by the Module.GetTypes() method if any of the classes in a module are not able to be loaded
StrongNameKeyPair Encapuslates access to a public/private key pair used to sign strong name assemblies.
TargetException Represents the exception that is thrown when an attempt is made to invoke an invalid target.
TargetInvocationException Represents the exception thrown when a method invoked through reflection throws an exception.
TargetParameterCountException Represents an exception that is thrown when the number of the parameter and invocation doesn't match.
TypeDelegator This class wraps a Type object and delegates all methods to that Type. It is useful to subclass this type and only overload those methods you need to provide customization in.
UnmanagedMarshal Represents the class that describes the field marshal.

Interfaces

Interface Description
ICustomAttributeProvider The ICustomAttributeProvider interface contains methods common to the Type, ConstructorInfo, EventInfo, FieldInfo, MethodInfo, MethodBase, MemberInfo, ParameterInfo, and PropertyInfo classes.
IReflect Supports basic runtime member Reflection namespace.

Structures

Structure Description
InterfaceMapping Retrieves the mapping of an interface into the actual methods on a class that implements that interface.
ParameterModifier Attaches a modifier to parameters so that binding can work with parameter signatures in which the types have been modified.

Delegates

Delegate Description
MemberFilter Represents a delegate that is used to filter a list of members represented in an array of MemberInfo objects.
ResolveEventHandler This delegate is used to handle the OnTypeResolveEvent and OnResourceResolveEvent events on Assembly. If the runtime class loader cannot resolve a reference to a type or a resource through normal means, these events are raised to give the caller a chance to tell the runtime which assembly the referenced class or resource is in. Cast EventArgs to a String to find the name of the requested Type or resource.
TypeFilter Filters the classes represented in an array of Type objects.

Enumerations

Enumeration Description
AssemblyNameFlags These flags control how an AssemblyName is used during assembly binding.
BindingFlags Comprises flags that control binding and the way in which the search for members and types is conducted using Reflection.
CallingConventions Defines the valid calling conventions for an enumeration.
EventAttributes Defines the attributes of an event. EventAttributes values may be bitwise or'ed together to get the appropriate combination.

These are defined in corhdr.h and are a combination of bits and enumerators.

FieldAttributes Comprises flags that specify the attributes of a field.
MemberTypes Specifies a type of member.
MethodAttributes Comprises flags that specify the attributes of a method. These flags are defined in corhdr.h.
MethodImplAttributes Comprises flags that specify the attributes of a method implementation.
ParameterAttributes Obtains the flags that define the attributes of a method parameter. The attributes can be used to determine if the parameter is an in parameter, an out parameter, etc.
PropertyAttributes Defines the attributes that may be associated with a property. These attribute values are defined in corhdr.h.
ResourceAttributes Defines the attributes for an embedded resource.
TypeAttributes To be supplied.