CalculatePriceRequest 类

应用到: CRM 2015 on-prem, CRM Online

Contains the data that is needed to calculate price in an opportunity, quote, order, and invoice. This is used internally for custom pricing calculation when the default system pricing is overridden.

命名空间: Microsoft.Crm.Sdk.Messages
程序集: Microsoft.Crm.Sdk.Proxy (在 Microsoft.Crm.Sdk.Proxy.dll 中)

语法

声明
<DataContractAttribute(Namespace:="https://schemas.microsoft.com/crm/2011/Contracts")> _
Public NotInheritable Class CalculatePriceRequest
    Inherits OrganizationRequest
[DataContractAttribute(Namespace="https://schemas.microsoft.com/crm/2011/Contracts")] 
public sealed class CalculatePriceRequest : OrganizationRequest

备注

Message Availability

若要使此消息正常工作,调用方必须连接到服务器。

Usage

This message does not have any usage scenario of its own. It provides you the capability to plug in your own custom pricing calculation logic if you do not want to use the out-of-box pricing provided by CRM. To use this message, you must create a plug-in with the custom pricing logic, and register the plug-in on the CalculatePrice message. Additionally, you must set the value of the Organization.OOBPriceCalculationEnabled attribute to 0 (false) to override the system pricing engine. 详细信息:Use custom pricing for products

Privileges and Access Rights

To perform this action, the caller must have privileges on the Opportunity, Quote, SalesOrder, and Invoice entities.

继承层次结构

System.Object
   Microsoft.Xrm.Sdk.OrganizationRequest
    Microsoft.Crm.Sdk.Messages.CalculatePriceRequest

线程安全性

此类型的所有公共静态(Visual Basic 中的 Shared)成员都是线程安全成员。不保证任何实例成员是线程安全成员。

平台

开发平台

Windows Vista、Windows Server 2003 和

目标平台

Windows Vista,Windows XP

另请参阅

参考

CalculatePriceRequest 成员
Microsoft.Crm.Sdk.Messages 命名空间

其他资源

Use custom pricing for products
Sample: Calculate Price plug-in

Send comments about this topic to Microsoft.
© 2014 Microsoft Corporation. All rights reserved.