Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

PrivateType Class

 

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)

System::Object
  Microsoft.VisualStudio.TestTools.UnitTesting::PrivateType

public ref class PrivateType 

NameDescription
System_CAPS_pubmethodPrivateType(String^, String^)

Initializes a new instance of the PrivateType class.

System_CAPS_pubmethodPrivateType(Type^)

Initializes a new instance of the PrivateType class with the type information.

NameDescription
System_CAPS_pubpropertyReferencedType

Gets the Type representing the PrivateType.

NameDescription
System_CAPS_pubmethodEquals(Object^)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetStaticArrayElement(String^, BindingFlags, array<Int32>^)

Gets a static array element contained in the wrapped type.

System_CAPS_pubmethodGetStaticArrayElement(String^, array<Int32>^)

Gets a static array element contained in the wrapped type.

System_CAPS_pubmethodGetStaticField(String^)

Gets a static field contained in the wrapped type.

System_CAPS_pubmethodGetStaticField(String^, BindingFlags)

Gets a static field contained in the wrapped type.

System_CAPS_pubmethodGetStaticFieldOrProperty(String^)

Gets a value of a static field or property in a wrapped type based on the name.

System_CAPS_pubmethodGetStaticFieldOrProperty(String^, BindingFlags)

Gets a value of a static field or property in a wrapped type based on the name.

System_CAPS_pubmethodGetStaticProperty(String^, BindingFlags, array<Object^>^)

Gets a static property contained in the wrapped type.

System_CAPS_pubmethodGetStaticProperty(String^, BindingFlags, array<Type^>^, array<Object^>^)

Gets a static indexed property contained in the wrapped type.

System_CAPS_pubmethodGetStaticProperty(String^, array<Object^>^)

Gets a static property contained in the wrapped type.

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodInvokeStatic(String^, BindingFlags, array<Object^>^)

Invokes static methods on the PrivateType.

System_CAPS_pubmethodInvokeStatic(String^, BindingFlags, array<Object^>^, CultureInfo^)

Invokes static methods on the PrivateType.

System_CAPS_pubmethodInvokeStatic(String^, BindingFlags, array<Type^>^, array<Object^>^)

Invokes static methods on the PrivateType.

System_CAPS_pubmethodInvokeStatic(String^, BindingFlags, array<Type^>^, array<Object^>^, CultureInfo^)

Invokes static methods on the PrivateType.

System_CAPS_pubmethodInvokeStatic(String^, BindingFlags, array<Type^>^, array<Object^>^, CultureInfo^, array<Type^>^)

Invokes static methods on the PrivateType.

System_CAPS_pubmethodInvokeStatic(String^, array<Object^>^)

Invokes static methods on the PrivateType.

System_CAPS_pubmethodInvokeStatic(String^, array<Object^>^, CultureInfo^)

Invokes static methods on the PrivateType.

System_CAPS_pubmethodInvokeStatic(String^, array<Type^>^, array<Object^>^)

Invokes static methods on the PrivateType.

System_CAPS_pubmethodInvokeStatic(String^, array<Type^>^, array<Object^>^, CultureInfo^)

Invokes static methods on the PrivateType.

System_CAPS_pubmethodInvokeStatic(String^, array<Type^>^, array<Object^>^, array<Type^>^)

Invokes static methods on the PrivateType.

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodSetStaticArrayElement(String^, BindingFlags, Object^, array<Int32>^)

Sets a static array element contained in the wrapped type.

System_CAPS_pubmethodSetStaticArrayElement(String^, Object^, array<Int32>^)

Sets a static array element contained in the wrapped type.

System_CAPS_pubmethodSetStaticField(String^, BindingFlags, Object^)

Sets a static field contained in the wrapped type.

System_CAPS_pubmethodSetStaticField(String^, Object^)

Sets a static field contained in the wrapped type.

System_CAPS_pubmethodSetStaticFieldOrProperty(String^, BindingFlags, Object^)

Sets a static field or property contained in the wrapped type.

System_CAPS_pubmethodSetStaticFieldOrProperty(String^, Object^)

Sets a static field or property contained in the wrapped type.

System_CAPS_pubmethodSetStaticProperty(String^, BindingFlags, Object^, array<Object^>^)

Sets a static property contained in the wrapped type.

System_CAPS_pubmethodSetStaticProperty(String^, BindingFlags, Object^, array<Type^>^, array<Object^>^)

Sets a static property contained in the wrapped type.

System_CAPS_pubmethodSetStaticProperty(String^, Object^, array<Object^>^)

Sets a static property contained in the wrapped type.

System_CAPS_pubmethodSetStaticProperty(String^, Object^, array<Type^>^, array<Object^>^)

Sets a static property contained in the wrapped type.

System_CAPS_pubmethodToString()

(Inherited from Object.)

The test generator automatically creates the private type.

ReflectionPermission

The user must have the TypeInformation and MemberAccess flags set to use this type.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: