Udostępnij za pośrednictwem


Metoda PrivateType.InvokeStatic — (String, array<Type[], array<Object[], array<Type )

Wywołuje metody statyczne na PrivateType.

Przestrzeń nazw:  Microsoft.VisualStudio.TestTools.UnitTesting
Zestaw:  Microsoft.VisualStudio.QualityTools.UnitTestFramework (w Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll)

Składnia

'Deklaracja
Public Function InvokeStatic ( _
    name As String, _
    parameterTypes As Type(), _
    args As Object(), _
    typeArguments As Type() _
) As Object
public Object InvokeStatic(
    string name,
    Type[] parameterTypes,
    Object[] args,
    Type[] typeArguments
)
public:
Object^ InvokeStatic(
    String^ name, 
    array<Type^>^ parameterTypes, 
    array<Object^>^ args, 
    array<Type^>^ typeArguments
)
member InvokeStatic : 
        name:string * 
        parameterTypes:Type[] * 
        args:Object[] * 
        typeArguments:Type[] -> Object 
public function InvokeStatic(
    name : String, 
    parameterTypes : Type[], 
    args : Object[], 
    typeArguments : Type[]
) : Object

Parametry

  • parameterTypes
    Typ: array<System.Type[]
    Tablica Type obiektów, które reprezentuje liczbę, zamówienia i typu parametry metody.
    - lub -
    Pusta tablica typu typ, to znaczy Type[] types = new Type[0] Aby uzyskać metoda, która nie ma parametrów.
  • args
    Typ: array<System.Object[]
    Tablica argumenty przekazywane.
  • typeArguments
    Typ: array<System.Type[]
    Tablicę argumentów typu użyć podczas wywoływania metody rodzajowej.

Wartość zwracana

Typ: System.Object

Zabezpieczenia programu .NET Framework

Zobacz też

Informacje

PrivateType Klasa

Przeciążenie InvokeStatic

Przestrzeń nazw Microsoft.VisualStudio.TestTools.UnitTesting