MethodInstance Element in MethodInstances (BDCMetadata Schema)
Applies to: SharePoint 2016 | SharePoint Foundation 2013 | SharePoint Online | SharePoint Server 2013
Specifies a MethodInstance.
Namespace: http://schemas.microsoft.com/windows/2007/BusinessDataCatalog
Schema: BDCMetadata
Note
The following two cases in a BDC model result in an InvalidOperationException at run time:
- Two SpecificFinder method instances that return the same set of fields.
- Two SpecificFinder method instances that have the same number of fields and that share the same number of fields with another method instance, such as a Finder.
<MethodInstance Type = "String" Default = "Boolean" ReturnParameterName = "String" ReturnTypeDescriptorName = "String" ReturnTypeDescriptorLevel = "Integer" Name = "String" DefaultDisplayName = "String" IsCached = "Boolean"> </MethodInstance>
Elements and attributes
The following sections describe attributes, child elements, and parent elements.
Attributes
Attribute |
Description |
||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
**Type** |
Required. Specifies the type of the **MethodInstance**. The following table lists the possible values for this attribute.
|
||||||||||||||||||||||||||||||||
**Default** |
Optional. Specifies whether the **MethodInstance** is the default among all **MethodInstances** that share its type within the containing external content type (**Entity**). Default value: **false** Attribute type: **Boolean** |
||||||||||||||||||||||||||||||||
**ReturnParameterName** |
Optional. The name of the **Parameter** that contains the **ReturnTypeDescriptor** of the **MethodInstance**. The **Direction** attribute of the **Parameter** must be a **ParameterDirection** attribute with a value of **Out**, **InOut**, or **Return**. This attribute must be specified for all types of **MethodInstances** except **GenericInvoker**, **Creator**, **Deleter**, and **Updater**. Attribute type: **String** |
||||||||||||||||||||||||||||||||
**ReturnTypeDescriptorLevel** |
Optional. This has been deprecated. Use the **ReturnTypeDescriptorPath** instead. Attribute type: **Integer** |
||||||||||||||||||||||||||||||||
**ReturnTypeDescriptorPath** |
Optional. The dotted path of the **TypeDescriptor** of the Association. Attribute type: **String** |
||||||||||||||||||||||||||||||||
**Name** |
Required. Specifies the name of the **MethodInstance**. Attribute type: **String** |
||||||||||||||||||||||||||||||||
**DefaultDisplayName** |
Optional. Specifies the default display name for the **MethodInstance**. Attribute type: **String** |
||||||||||||||||||||||||||||||||
**IsCached** |
Optional. Specifies whether the **MethodInstance** is used frequently. Default value: **true** Attribute type: **Boolean** |
Child elements
Element | Description |
---|---|
LocalizedDisplayNames Element in MetadataObject (BDCMetadata Schema) | The localized display names of the MethodInstance. |
Properties Element in MetadataObject (BDCMetadata Schema) | The properties of the MethodInstance. |
AccessControlList Element (BDCMetadata Schema) | The access control lists (ACLs) of the MethodInstance. |
Parent elements
Element | Description |
---|---|
MethodInstances Element in Method (BDCMetadata Schema) | The MethodInstances element that contains this MethodInstance. |
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for