Udostępnij za pośrednictwem


PrivateType Members

Include Protected Members
Include Inherited Members

Represents the type of a private class that gives access to private static implementations.

The PrivateType type exposes the following members.

Constructors

 

Name

Description

Public method

PrivateType

Overloaded. Initializes a new instance of the PrivateType class.

Top

Methods

 

Name

Description

Public method

Equals

Determines whether the specified Object is equal to the current Object. (Inherited from Object.)

Protected method

Finalize

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)

Public method

GetHashCode

Serves as a hash function for a particular type. (Inherited from Object.)

Public method

GetStaticArrayElement

Overloaded. Gets a static array element contained in the wrapped type.

Public method

GetStaticField

Overloaded. Gets a static field contained in the wrapped type.

Public method

GetStaticFieldOrProperty

Overloaded. Gets a value of a static field or property in a wrapped type.

Public method

GetStaticProperty

Overloaded. Gets a static property contained in the wrapped type.

Public method

GetType

Gets the type of the current instance. (Inherited from Object.)

Public method

InvokeStatic

Overloaded. Invokes static methods on the PrivateType.

Protected method

MemberwiseClone

Creates a shallow copy of the current Object. (Inherited from Object.)

Public method

SetStaticArrayElement

Overloaded. Sets a static array element contained in the wrapped type.

Public method

SetStaticField

Overloaded. Sets a static field contained in the wrapped type.

Public method

SetStaticFieldOrProperty

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

Public method

SetStaticProperty

Overloaded. Sets a static property contained in the wrapped type.

Public method

ToString

Returns a string that represents the current object. (Inherited from Object.)

Top

Properties

 

Name

Description

Public property

ReferencedType

Gets the Type representing the PrivateType.

Top

See Also

Reference

PrivateType Class

Microsoft.VisualStudio.TestTools.UnitTesting Namespace