PrivateType.GetStaticField Method (String)

Gets a static field contained in the wrapped type.

Namespace:  Microsoft.VisualStudio.TestTools.UnitTesting
Assembly:  Microsoft.VisualStudio.SmartDevice.UnitTestFramework (in Microsoft.VisualStudio.SmartDevice.UnitTestFramework.dll)

Syntax

'Declaration
Public Function GetStaticField ( _
    name As String _
) As Object
'Usage
Dim instance As PrivateType 
Dim name As String 
Dim returnValue As Object 

returnValue = instance.GetStaticField(name)
public Object GetStaticField(
    string name
)
public:
Object^ GetStaticField(
    String^ name
)
public function GetStaticField(
    name : String
) : Object

Parameters

Return Value

Type: System.Object
An object that represents the value of the static field.

.NET Framework Security

See Also

Reference

PrivateType Class

PrivateType Members

GetStaticField Overload

Microsoft.VisualStudio.TestTools.UnitTesting Namespace