IRemoteExecutionService.ExecuteBdcMethod Method

Executes the specified MethodInstance object in the Business Data Catalog (BDC) metadata.

Namespace:  Microsoft.BusinessData.Infrastructure
Assembly:  Microsoft.BusinessData (in Microsoft.BusinessData.dll)

Syntax

'Declaration
<FaultContractAttribute(GetType(BdcSerializedExceptionState))> _
<FaultContractAttribute(GetType(ArgumentOutOfRangeException))> _
<FaultContractAttribute(GetType(InvalidOperationException))> _
<OperationContractAttribute> _
<FaultContractAttribute(GetType(ArgumentNullException))> _
<FaultContractAttribute(GetType(ArgumentException))> _
Function ExecuteBdcMethod ( _
    dataClassNamespace As String, _
    dataClassName As String, _
    dataClassVersion As String, _
    lobSystemInstanceName As String, _
    methodInstanceName As String, _
    callerLcid As Integer, _
    serializedOverrideArgs As String() _
) As Stream
'Usage
Dim instance As IRemoteExecutionService
Dim dataClassNamespace As String
Dim dataClassName As String
Dim dataClassVersion As String
Dim lobSystemInstanceName As String
Dim methodInstanceName As String
Dim callerLcid As Integer
Dim serializedOverrideArgs As String()
Dim returnValue As Stream

returnValue = instance.ExecuteBdcMethod(dataClassNamespace, _
    dataClassName, dataClassVersion, _
    lobSystemInstanceName, methodInstanceName, _
    callerLcid, serializedOverrideArgs)
[FaultContractAttribute(typeof(BdcSerializedExceptionState))]
[FaultContractAttribute(typeof(ArgumentOutOfRangeException))]
[FaultContractAttribute(typeof(InvalidOperationException))]
[OperationContractAttribute]
[FaultContractAttribute(typeof(ArgumentNullException))]
[FaultContractAttribute(typeof(ArgumentException))]
Stream ExecuteBdcMethod(
    string dataClassNamespace,
    string dataClassName,
    string dataClassVersion,
    string lobSystemInstanceName,
    string methodInstanceName,
    int callerLcid,
    string[] serializedOverrideArgs
)

Parameters

  • dataClassNamespace
    Type: System.String

    The namespace of the data class that contains the MethodInstance object to execute.

  • dataClassName
    Type: System.String

    The name of the data class that contains the MethodInstance object to execute.

  • dataClassVersion
    Type: System.String

    The version of the data class that contains the MethodInstance object to execute.

  • lobSystemInstanceName
    Type: System.String

    The name of the LobSystemInstance object to provide connection management for the MethodInstance object.

  • methodInstanceName
    Type: System.String

    The name of the MethodInstance object to execute.

  • callerLcid
    Type: System.Int32

    The locale ID of the caller. Use this value to send error messages in the language that corresponds to the specified locale ID.

  • serializedOverrideArgs
    Type: []

    The arguments of the method in XML serialized form, based on the metadata.

Return Value

Type: System.IO.Stream
A stream that contains the results of the execution. The structure of the stream is dependent on the specific shim that executed the method.

See Also

Reference

IRemoteExecutionService Interface

IRemoteExecutionService Members

Microsoft.BusinessData.Infrastructure Namespace