共用方式為


PrivateObject.RealType 屬性

取得基礎物件的型別。

命名空間:  Microsoft.VisualStudio.TestTools.UnitTesting
組件:  Microsoft.VisualStudio.QualityTools.UnitTestFramework (在 Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll 中)

語法

'宣告
Public ReadOnly Property RealType As Type
    Get
public Type RealType { get; }
public:
property Type^ RealType {
    Type^ get ();
}
member RealType : Type
function get RealType () : Type

屬性值

型別:System.Type
Type 物件。

備註

這代表包裝物件的 Type

.NET Framework 安全性

請參閱

參考

PrivateObject 類別

Microsoft.VisualStudio.TestTools.UnitTesting 命名空間