PrivateType.InvokeStatic – metoda (String, array<Type[], array<Object[], array<Type )
Vyvolá na statické metody PrivateType.
Obor názvů: Microsoft.VisualStudio.TestTools.UnitTesting
Sestavení: Microsoft.VisualStudio.QualityTools.UnitTestFramework (v Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll)
Syntaxe
'Deklarace
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
- name
Typ: System.String
Název metody invoke.
- parameterTypes
Typ: array<System.Type[]
Pole Type objekty, které představuje číslo, pořadí a zadejte parametry metody.
-nebo-
Prázdné pole typu text, je Type[] types = new Type[0] získat metodu, která žádné parametry.
- args
Typ: array<System.Object[]
Argumenty pro pole.
- typeArguments
Typ: array<System.Type[]
Pole Typ argumentů při vyvolání obecné metody.
Vrácená hodnota
Typ: System.Object
Zabezpečení rozhraní .NET Framework
- Plná důvěra přímému volajícímu. Částečně zabezpečený kód nemůže tento člen použít. Další informace naleznete v tématu Používání knihoven z částečně důvěryhodného kódu.