Invokes a method on the object with additional parameters not present in the method signature.
Namespace: Microsoft.VisualStudio.Data.Core
Assembly: Microsoft.VisualStudio.Data.Core (in Microsoft.VisualStudio.Data.Core.dll)
Syntax
'宣言
Function Invoke ( _
name As String, _
args As Object(), _
parameters As Object() _
) As Object
'使用
Dim instance As IVsDataSupportObject
Dim name As String
Dim args As Object()
Dim parameters As Object()
Dim returnValue As Object
returnValue = instance.Invoke(name, args, _
parameters)
Object Invoke(
string name,
Object[] args,
Object[] parameters
)
Object^ Invoke(
String^ name,
array<Object^>^ args,
array<Object^>^ parameters
)
function Invoke(
name : String,
args : Object[],
parameters : Object[]
) : Object
Parameters
name
Type: System.StringThe name of a method on the object.
args
Type: []The regular arguments to pass to the method.
parameters
Type: []Additional parameters to pass to the method.
Return Value
Type: System.Object
The return value of the method, if any; otherwise, a null reference (Nothing in Visual Basic).
Exceptions
| Exception | Condition |
|---|---|
| [any] | The method called threw an exception. |
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
IVsDataSupportObject<T> Interface