Invokes the specified method on the IVsDataSupportObject<T> interface.
Namespace: Microsoft.VisualStudio.Data.Framework
Assembly: Microsoft.VisualStudio.Data.Framework (in Microsoft.VisualStudio.Data.Framework.dll)
Syntax
'宣言
Private Function Invoke ( _
name As String, _
args As Object(), _
parameters As Object() _
) As Object Implements IVsDataSupportObject(Of IVsDataMappedObjectConverter).Invoke
'使用
Dim instance As DataMappedObjectConverter
Dim name As String
Dim args As Object()
Dim parameters As Object()
Dim returnValue As Object
returnValue = CType(instance, IVsDataSupportObject(Of IVsDataMappedObjectConverter)).Invoke(name, _
args, parameters)
Object IVsDataSupportObject<IVsDataMappedObjectConverter>.Invoke(
string name,
Object[] args,
Object[] parameters
)
private:
virtual Object^ Invoke(
String^ name,
array<Object^>^ args,
array<Object^>^ parameters
) sealed = IVsDataSupportObject<IVsDataMappedObjectConverter^>::Invoke
JScript does not support explicit interface implementations.
Parameters
name
Type: System.StringThe name of the method to invoke.
args
Type: []An array of arguments to be passed to the invoked method.
parameters
Type: []An array of parameters to be passed to the invoked method.
Return Value
Type: System.Object
The object returned by the invoked method.
Implements
IVsDataSupportObject<T>.Invoke(String, [], [])
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | The name parameter is a null reference (Nothing in Visual Basic). |
| ArgumentException | One of the following conditions is true: The args parameter is a null reference (Nothing in Visual Basic); the specified method name in the name parameter is equal to one of the following values: "GetSupportedRestrictions", "GetRequiredRestrictions", "GetExpensiveProperties", or "GetOrdering" and the number of arguments in the args array is less than one; the method name is equal to "SelectObjects" and the number of arguments in the args array is less than three; the method name is not valid. |
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
DataMappedObjectConverter Class