Compartilhar via


Parameter Class

Represents the in, in-out, out, and return parameters of each method.

Inheritance Hierarchy

System.Object
  Microsoft.SharePoint.BusinessData.Administration.MetadataObject
    Microsoft.SharePoint.BusinessData.Administration.AccessControlledMetadataObject
      Microsoft.SharePoint.BusinessData.Administration.Parameter

Namespace:  Microsoft.SharePoint.BusinessData.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
<SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel := True)> _
Public NotInheritable Class Parameter _
    Inherits AccessControlledMetadataObject
'Usage
Dim instance As Parameter
[SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel = true)]
public sealed class Parameter : AccessControlledMetadataObject

Remarks

In cases where a Web method returns void, it is likely returning a value in an out parameter. You must describe that parameter as the return parameter in the metadata. A return parameter in the Business Data Connectivity (BDC) service is the value theBDC should read from the back-end application. Parameters contain information such as:

  • The direction of the parameter (In, Out, InOut, Return).

  • The ordinal number of the parameter in the method signature.

  • Whether the parameter is optional.

  • The TypeReflector. Every Parameter object contains a TypeReflector. The TypeReflector is responsible for instantiating a Parameter object filled with default values according to the structure indicated by the TypeDescriptor, and getting or setting values for individual fields referenced by type descriptors in the instantiated Parameter object.

For Web methods, parameter names are tokens used by the BDC. Although they must be unique for a given method, you can name them anything. TypeDescriptor names, however, must exactly match the structures and fields returned by the back-end application methods.

In the case of a database, the parameter names must exactly match the parameter names in the stored procedure or SQL query.

Examples

Code Snippet: Create an External Content Type Using the Administration Object Model

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Parameter Members

Microsoft.SharePoint.BusinessData.Administration Namespace