Share via


Metodo PrivateType.InvokeStatic (String, BindingFlags, array<Type[], array<Object[], CultureInfo, array<Type )

Richiama i metodi statici sul tipo PrivateType.

Spazio dei nomi:  Microsoft.VisualStudio.TestTools.UnitTesting
Assembly:  Microsoft.VisualStudio.QualityTools.UnitTestFramework (in Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll)

Sintassi

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

Parametri

  • parameterTypes
    Tipo: array<System.Type[]
    Matrice di oggetti Type che rappresenta il numero, l'ordine e il tipo di parametri per il metodo.
    -oppure-
    Matrice vuota del tipo Type, vale a dire, Type[] types = new Type[0] per ottenere un metodo che non accetta parametri.
  • args
    Tipo: array<System.Object[]
    Matrice di argomenti da passare.
  • culture
    Tipo: System.Globalization.CultureInfo
    Oggetto CultureInfo che rappresenta le impostazioni locali di globalizzazione da utilizzare, che potrebbero essere necessarie per le conversioni specifiche delle impostazioni locali, come la conversione di uno String numerico in un Double.
    oppure
    nullriferimento null (Nothing in Visual Basic) per utilizzare il valore CultureInfo del thread corrente.
  • typeArguments
    Tipo: array<System.Type[]
    Matrice di argomenti di tipo da utilizzare quando si richiama un metodo generico.

Valore restituito

Tipo: System.Object

Sicurezza di .NET Framework

Vedere anche

Riferimenti

PrivateType Classe

Overload InvokeStatic

Spazio dei nomi Microsoft.VisualStudio.TestTools.UnitTesting