Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Applies to: SharePoint Server 2010
Specifies a MethodInstance.
Namespace: https://schemas.microsoft.com/windows/2007/BusinessDataCatalog
Schema: BDCMetadata
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>
Attributes and Elements
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. |
The properties of the MethodInstance. |
|
The access control lists (ACLs) of the MethodInstance. |
Parent Elements
Element |
Description |
---|---|
The MethodInstances element that contains this MethodInstance. |