OrganizationServiceContextExtensions.CreateInstance Method (OrganizationServiceContext, Entity, Int32)
Applies To: Dynamics CRM 2013
Creates future unexpanded instances of a recurring appointment master. (Developer Extensions)
Namespace: Microsoft.Xrm.Client.Messages
Assembly: Microsoft.Xrm.Client (in Microsoft.Xrm.Client.dll)
Syntax
public static bool CreateInstance(
this OrganizationServiceContext context,
Entity target,
int count
)
public:
[ExtensionAttribute]
static bool CreateInstance(
OrganizationServiceContext^ context,
Entity^ target,
int count
)
static member CreateInstance :
context:OrganizationServiceContext *
target:Entity *
count:int -> bool
<ExtensionAttribute>
Public Shared Function CreateInstance (
context As OrganizationServiceContext,
target As Entity,
count As Integer
) As Boolean
Parameters
context
Type: Microsoft.Xrm.Sdk.Client.OrganizationServiceContextThe organization service context.
target
Type: Microsoft.Xrm.Sdk.EntityThe target appointment instance to create. Required.
count
Type: System.Int32The number of instances to be created. Required.
Return Value
Type: System.Boolean
Returns a Boolean, that indicates whether the series can be expanded.
Remarks
This is a method wrapper for the CreateInstanceRequest and CreateInstanceResponse classes. See the documentation in the Request class for more information about this message.
See Also
OrganizationServiceContextExtensions Class
Microsoft.Xrm.Client.Messages Namespace
Developer extensions for Microsoft Dynamics CRM 2013
Return to top