MethodInstanceCollection.Create - Méthode (String, Boolean, TypeDescriptor, MethodInstanceType, EntityReference, EntityReference[])
Crée un nouvel objet MethodInstance .
Espace de noms : Microsoft.SharePoint.BusinessData.Administration
Assembly : Microsoft.SharePoint (dans Microsoft.SharePoint.dll)
Syntaxe
'Déclaration
Public Function Create ( _
name As String, _
isCached As Boolean, _
returnTypeDescriptor As TypeDescriptor, _
associationType As MethodInstanceType, _
destinationEntityReference As EntityReference, _
sourceEntityReferences As EntityReference() _
) As Association
'Utilisation
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
)
Paramètres
name
Type : System.StringLe nom de l'objet MethodInstance .
isCached
Type : System.Booleantrue si l'objet créé doit être mis en cache ; dans le cas contraire, false.
returnTypeDescriptor
Type : Microsoft.SharePoint.BusinessData.Administration.TypeDescriptorL'objet TypeDescriptor .
associationType
Type : Microsoft.BusinessData.MetadataModel.MethodInstanceTypeL'objet AssociationType .
destinationEntityReference
Type : Microsoft.SharePoint.BusinessData.Administration.EntityReferenceL'objet EntityReference de destination.
sourceEntityReferences
Type : []Les objets de EntityReference source.
Valeur renvoyée
Type : Microsoft.SharePoint.BusinessData.Administration.Association
Le nouvel objet MethodInstance .
Voir aussi
Référence
MethodInstanceCollection classe
MethodInstanceCollection - Membres
Microsoft.SharePoint.BusinessData.Administration - Espace de noms