MethodInstanceCollection.Create Method (String, Boolean, TypeDescriptor, MethodInstanceType, Boolean, Method)
Creates a new MethodInstance object.
Namespace: Microsoft.SharePoint.BusinessData.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Function Create ( _
name As String, _
isCached As Boolean, _
returnTypeDescriptor As TypeDescriptor, _
type As MethodInstanceType, _
isDefault As Boolean, _
methodToUse As Method _
) As MethodInstance
'Usage
Dim instance As MethodInstanceCollection
Dim name As String
Dim isCached As Boolean
Dim returnTypeDescriptor As TypeDescriptor
Dim type As MethodInstanceType
Dim isDefault As Boolean
Dim methodToUse As Method
Dim returnValue As MethodInstance
returnValue = instance.Create(name, isCached, _
returnTypeDescriptor, type, isDefault, _
methodToUse)
public MethodInstance Create(
string name,
bool isCached,
TypeDescriptor returnTypeDescriptor,
MethodInstanceType type,
bool isDefault,
Method methodToUse
)
Parameters
name
Type: System.StringThe name of the MethodInstance object.
isCached
Type: System.Booleantrue if the created object is to be cached; otherwise, false.
returnTypeDescriptor
Type: Microsoft.SharePoint.BusinessData.Administration.TypeDescriptorThe TypeDescriptor object.
type
Type: Microsoft.BusinessData.MetadataModel.MethodInstanceTypeThe MethodInstanceType type.
isDefault
Type: System.Booleantrue if the created object is to be the default MethodInstanceCollection object; otherwise, false.
methodToUse
Type: Microsoft.SharePoint.BusinessData.Administration.MethodThe Method object to use.
Return Value
Type: Microsoft.SharePoint.BusinessData.Administration.MethodInstance
The new MethodInstance object.
See Also
Reference
MethodInstanceCollection Class