PrivateType.GetStaticField Method (String)

Gets a static field contained in the wrapped type.

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

Syntax

'Declaration
Public Function GetStaticField ( _
    name As String _
) As Object
public Object GetStaticField(
    string name
)
public:
Object^ GetStaticField(
    String^ name
)
member GetStaticField : 
        name:string -> Object
public function GetStaticField(
    name : String
) : Object

Parameters

  • name
    Type: String

    The name of the static field.

Return Value

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

.NET Framework Security

See Also

Reference

PrivateType Class

GetStaticField Overload

Microsoft.VisualStudio.TestTools.UnitTesting Namespace