IDataClass.GetMethodInstance Method
Gets the method instance with the specified name and stereotype.
Namespace: Microsoft.BusinessData.MetadataModel
Assembly: Microsoft.BusinessData (in Microsoft.BusinessData.dll)
Syntax
'Declaration
Function GetMethodInstance ( _
name As String, _
stereotype As MethodInstanceType _
) As IMethodInstance
'Usage
Dim instance As IDataClass
Dim name As String
Dim stereotype As MethodInstanceType
Dim returnValue As IMethodInstance
returnValue = instance.GetMethodInstance(name, _
stereotype)
IMethodInstance GetMethodInstance(
string name,
MethodInstanceType stereotype
)
Parameters
name
Type: System.StringThe name of the method instance.
stereotype
Type: Microsoft.BusinessData.MetadataModel.MethodInstanceTypeThe stereotype of method instance to return.
Return Value
Type: Microsoft.BusinessData.MetadataModel.IMethodInstance
Returns IMethodInstance.
The method instance.
Examples
The following code example shows how to use GetLobSystem through the IEntity interface object, which is derived from IDataClass.
Code Snippet: Execute a Finder Method Instance of an External Content Type
Code Snippet: Set the Parameters Object Before Calling a GenericInvoker