MethodInstance class

Enables reuse of method metadata with different default values for the parameters of the method.

Inheritance hierarchy

System.Object
  Microsoft.SharePoint.BusinessData.Administration.MetadataObject
    Microsoft.SharePoint.BusinessData.Administration.AccessControlledMetadataObject
      Microsoft.SharePoint.BusinessData.Administration.IndividuallySecurableMetadataObject
        Microsoft.SharePoint.BusinessData.Administration.MethodInstance
          Microsoft.SharePoint.BusinessData.Administration.Association

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

Syntax

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

Remarks

Each MethodInstance object associates a unique set of default values with the parameters of a method.

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

MethodInstance members

Microsoft.SharePoint.BusinessData.Administration namespace