Share via


PrivateType.InvokeStatic Method (String, array<Object , CultureInfo)

Invokes static methods on the PrivateType.

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

Syntax

'Declaration
Public Function InvokeStatic ( _
    name As String, _
    args As Object(), _
    culture As CultureInfo _
) As Object
public Object InvokeStatic(
    string name,
    Object[] args,
    CultureInfo culture
)
public:
Object^ InvokeStatic(
    String^ name, 
    array<Object^>^ args, 
    CultureInfo^ culture
)
member InvokeStatic : 
        name:string * 
        args:Object[] * 
        culture:CultureInfo -> Object 
public function InvokeStatic(
    name : String, 
    args : Object[], 
    culture : CultureInfo
) : Object

Parameters

  • args
    Type: array<System.Object[]
    Any array of arguments to pass
  • culture
    Type: System.Globalization.CultureInfo
    The CultureInfo object that represents the globalization locale to use, which might be necessary for locale-specific conversions, such as converting a numeric String to a Double.
    -or-
    nulla null reference (Nothing in Visual Basic) to use the current thread's CultureInfo.

Return Value

Type: System.Object
An object that represents the invoked static method's return value, if any.

Exceptions

Exception Condition
ArgumentException

name is nulla null reference (Nothing in Visual Basic).

.NET Framework Security

See Also

Reference

PrivateType Class

InvokeStatic Overload

Microsoft.VisualStudio.TestTools.UnitTesting Namespace