Для изменения размера нажмите или перетащите

FakePluginExecutionContext - класс

Заглушка для классов, реализующих интерфейс IPluginExecutionContext.
Иерархия наследования
SystemObject
  PZone.Xrm.TestingFakePluginExecutionContext

Пространство имён:  PZone.Xrm.Testing
Сборка:  PZone.SDK.Xrm.Testing (в PZone.SDK.Xrm.Testing.dll) Версия: 8.2.1.0 (8.2.1.0)
Синтаксис
C#
public class FakePluginExecutionContext : IPluginExecutionContext, 
	IExecutionContext

Тип FakePluginExecutionContext предоставляет следующие члены.

Конструкторы
  ИмяОписание
Открытый методFakePluginExecutionContext
Конструтор класса без параметров.
Открытый методFakePluginExecutionContext(Entity)
Конструтор класса с указанием основной сущности.
В начало страницы
Свойства
  ИмяОписание
Открытое свойствоBusinessUnitId

Gets the GUIDGUID of the business unit that the user making the request, also known as the calling user, belongs to.

Открытое свойствоCorrelationId

Gets the GUID for tracking plug-in or custom workflow activity execution.

Открытое свойствоDepth

Gets the current depth of execution in the call stack.

Открытое свойствоInitiatingUserId

Gets the GUID of the system user account under which the current pipeline is executing.

Открытое свойствоInputParameters

Gets the parameters of the request message that triggered the event that caused the plug-in to execute.

Открытое свойствоIsExecutingOffline

Gets whether the plug-in is executing from the Microsoft Dynamics 365 for Microsoft Office Outlook with Offline Access client while it is offline.

Открытое свойствоIsInTransaction

Gets a value indicating if the plug-in is executing within the database transaction.

Открытое свойствоIsOfflinePlayback

Gets a value indicating if the plug-in is executing as a result of the Microsoft Dynamics 365 for Microsoft Office Outlook with Offline Access client transitioning from offline to online and synchronizing with the Microsoft Dynamics 365 server.

Открытое свойствоIsolationMode

Gets a value indicating if the plug-in is executing in the sandbox.

Открытое свойствоMessageName

Gets the name of the Web service message that is being processed by the event execution pipeline.

Открытое свойствоMode

Gets the mode of plug-in execution.

Открытое свойствоOperationCreatedOn

Gets the date and time that the related System Job was created.

Открытое свойствоOperationId

Gets the GUID of the related System Job.

Открытое свойствоOrganizationId

Gets the GUID of the organization that the entity belongs to and the plug-in executes under.

Открытое свойствоOrganizationName

Gets the unique name of the organization that the entity currently being processed belongs to and the plug-in executes under.

Открытое свойствоOutputParameters

Gets the parameters of the response message after the core platform operation has completed.

Открытое свойствоOwningExtension

Gets a reference to the related SdkMessageProcessingingStep or ServiceEndpoint.

Открытое свойствоParentContext

Gets the execution context from the parent pipeline operation.

Открытое свойствоPostEntityImages

Gets the properties of the primary entity after the core platform operation has been completed.

Открытое свойствоPreEntityImages

Gets the properties of the primary entity before the core platform operation has begins.

Открытое свойствоPrimaryEntityId
Идентификатор основной сущности.
Открытое свойствоPrimaryEntityName
Имя основной сущности.
Открытое свойствоRequestId

Gets the GUID of the request being processed by the event execution pipeline.

Открытое свойствоSecondaryEntityName

Gets the name of the secondary entity that has a relationship with the primary entity.

Открытое свойствоSharedVariables

Gets the custom properties that are shared between plug-ins.

Открытое свойствоStage

Gets the stage in the execution pipeline that a synchronous plug-in is registered for.

Открытое свойствоUserId

Gets the GUID of the system user for whom the plug-in invokes web service methods on behalf of.

В начало страницы
Методы
  ИмяОписание
Открытый методEquals
Determines whether the specified object is equal to the current object.
(Унаследован от Object.)
Защищённый методFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Унаследован от Object.)
Открытый методGetHashCode
Serves as the default hash function.
(Унаследован от Object.)
Открытый методGetType
Gets the Type of the current instance.
(Унаследован от Object.)
Защищённый методMemberwiseClone
Creates a shallow copy of the current Object.
(Унаследован от Object.)
Открытый методToString
Returns a string that represents the current object.
(Унаследован от Object.)
В начало страницы
Примеры
C#
var entity = new Entity("opportunity", Guid.NewGuid());
{
    ["statecode"] = new OptionSetValue(1)
};
var postEntity = new Entity("opportunity", entity.Id)
{
    ["estimatedvalue"] = new Money(10000)
};
var context = new FakePluginExecutionContext(entity);
context.PostEntityImages.Add("Image", postEntity);
См. также