PrivateType Class
Visual Studio 2012
Represents the type of a private class that gives access to private static implementations.
Namespace:
Microsoft.VisualStudio.TestTools.UnitTesting
Assembly: Microsoft.VisualStudio.QualityTools.UnitTestFramework (in Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll)
The PrivateType type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | PrivateType(Type) | Initializes a new instance of the PrivateType class with the type information. |
![]() | PrivateType(String, String) | Initializes a new instance of the PrivateType class. |
| Name | Description | |
|---|---|---|
![]() | Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetStaticArrayElement(String, Int32[]) | Gets a static array element contained in the wrapped type. |
![]() | GetStaticArrayElement(String, BindingFlags, Int32[]) | Gets a static array element contained in the wrapped type. |
![]() | GetStaticField(String) | Gets a static field contained in the wrapped type. |
![]() | GetStaticField(String, BindingFlags) | Gets a static field contained in the wrapped type. |
![]() | GetStaticFieldOrProperty(String) | Gets a value of a static field or property in a wrapped type based on the name. |
![]() | GetStaticFieldOrProperty(String, BindingFlags) | Gets a value of a static field or property in a wrapped type based on the name. |
![]() | GetStaticProperty(String, Object[]) | Gets a static property contained in the wrapped type. |
![]() | GetStaticProperty(String, BindingFlags, Object[]) | Gets a static property contained in the wrapped type. |
![]() | GetStaticProperty(String, BindingFlags, Type[], Object[]) | Gets a static indexed property contained in the wrapped type. |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | InvokeStatic(String, Object[]) | Invokes static methods on the PrivateType. |
![]() | InvokeStatic(String, Object[], CultureInfo) | Invokes static methods on the PrivateType. |
![]() | InvokeStatic(String, BindingFlags, Object[]) | Invokes static methods on the PrivateType. |
![]() | InvokeStatic(String, Type[], Object[]) | Invokes static methods on the PrivateType. |
![]() | InvokeStatic(String, BindingFlags, Object[], CultureInfo) | Invokes static methods on the PrivateType. |
![]() | InvokeStatic(String, BindingFlags, Type[], Object[]) | Invokes static methods on the PrivateType. |
![]() | InvokeStatic(String, Type[], Object[], CultureInfo) | Invokes static methods on the PrivateType. |
![]() | InvokeStatic(String, Type[], Object[], Type[]) | Invokes static methods on the PrivateType. |
![]() | InvokeStatic(String, BindingFlags, Type[], Object[], CultureInfo) | Invokes static methods on the PrivateType. |
![]() | InvokeStatic(String, BindingFlags, Type[], Object[], CultureInfo, Type[]) | Invokes static methods on the PrivateType. |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | SetStaticArrayElement(String, Object, Int32[]) | Sets a static array element contained in the wrapped type. |
![]() | SetStaticArrayElement(String, BindingFlags, Object, Int32[]) | Sets a static array element contained in the wrapped type. |
![]() | SetStaticField(String, Object) | Sets a static field contained in the wrapped type. |
![]() | SetStaticField(String, BindingFlags, Object) | Sets a static field contained in the wrapped type. |
![]() | SetStaticFieldOrProperty(String, Object) | Sets a static field or property contained in the wrapped type. |
![]() | SetStaticFieldOrProperty(String, BindingFlags, Object) | Sets a static field or property contained in the wrapped type. |
![]() | SetStaticProperty(String, Object, Object[]) | Sets a static property contained in the wrapped type. |
![]() | SetStaticProperty(String, Object, Type[], Object[]) | Sets a static property contained in the wrapped type. |
![]() | SetStaticProperty(String, BindingFlags, Object, Object[]) | Sets a static property contained in the wrapped type. |
![]() | SetStaticProperty(String, BindingFlags, Object, Type[], Object[]) | Sets a static property contained in the wrapped type. |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
- ReflectionPermission
The user must have the TypeInformation and MemberAccess flags set to use this type.
