OrganizationServiceContextExtensions.DeleteLink<TSource, TTarget> Method (OrganizationServiceContext, TSource, Expression<Func<TSource, TTarget>>, TTarget)
Applies To: Dynamics CRM 2015
Namespace: Microsoft.Xrm.Client
Assembly: Microsoft.Xrm.Client (in Microsoft.Xrm.Client.dll)
Syntax
public static void DeleteLink<TSource, TTarget>(
this OrganizationServiceContext context,
TSource source,
Expression<Func<TSource, TTarget>> propertySelector,
TTarget target
)
where TSource : Entity
where TTarget : Entity
public:
generic<typename TSource, typename TTarget>
where TSource : Entity
where TTarget : Entity
[ExtensionAttribute]
static void DeleteLink(
OrganizationServiceContext^ context,
TSource source,
Expression<Func<TSource, TTarget>^>^ propertySelector,
TTarget target
)
static member DeleteLink<'TSource, 'TTarget when 'TSource : Entity when 'TTarget : Entity> :
context:OrganizationServiceContext *
source:'TSource *
propertySelector:Expression<Func<'TSource, 'TTarget>> *
target:'TTarget -> unit
<ExtensionAttribute>
Public Shared Sub DeleteLink(Of TSource As Entity, TTarget As Entity) (
context As OrganizationServiceContext,
source As TSource,
propertySelector As Expression(Of Func(Of TSource, TTarget)),
target As TTarget
)
Parameters
context
Type: Microsoft.Xrm.Sdk.Client.OrganizationServiceContextType: OrganizationServiceContext. The service context.
source
Type: TSourceType: TSource. The source entity instance.
- propertySelector
Type: System.Linq.Expressions.Expression<Func<TSource, TTarget>>
target
Type: TTargetType: TTarget. The target entity instance.
Type Parameters
- TSource
The source entity.
- TTarget
The target entity.
Remarks
This is an extension to the core DeleteLink method.
See Also
DeleteLink Overload
OrganizationServiceContextExtensions Class
Microsoft.Xrm.Client Namespace
Return to top
© 2017 Microsoft. All rights reserved. Copyright