MethodInstanceCollection.Create Method (String, Boolean, TypeDescriptor, MethodInstanceType, EntityReference, EntityReference )
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, _
associationType As MethodInstanceType, _
destinationEntityReference As EntityReference, _
sourceEntityReferences As EntityReference() _
) As Association
'Usage
Dim instance As MethodInstanceCollection
Dim name As String
Dim isCached As Boolean
Dim returnTypeDescriptor As TypeDescriptor
Dim associationType As MethodInstanceType
Dim destinationEntityReference As EntityReference
Dim sourceEntityReferences As EntityReference()
Dim returnValue As Association
returnValue = instance.Create(name, isCached, _
returnTypeDescriptor, associationType, _
destinationEntityReference, sourceEntityReferences)
public Association Create(
string name,
bool isCached,
TypeDescriptor returnTypeDescriptor,
MethodInstanceType associationType,
EntityReference destinationEntityReference,
EntityReference[] sourceEntityReferences
)
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.
associationType
Type: Microsoft.BusinessData.MetadataModel.MethodInstanceTypeThe AssociationType object.
destinationEntityReference
Type: Microsoft.SharePoint.BusinessData.Administration.EntityReferenceThe destination EntityReference object.
sourceEntityReferences
Type: []The source EntityReference objects.
Return Value
Type: Microsoft.SharePoint.BusinessData.Administration.Association
The new MethodInstance object.
See Also
Reference
MethodInstanceCollection Class