zoukankan      html  css  js  c++  java
  • CRM2011:用PublishXmlRequest发布组件

    使用PublishXmlRequest发布组件时需要在ParameterXml属性上赋上要发布的组件的信息(xml),配置方法如下:


    (来自CRM 2011 SDK 文档)

    PublishXmlRequest.ParameterXml Property

    Gets or sets the XML that defines which solution components to publish in this request.

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

    用法

    Visual Basic

    
    

    语法

    Visual Basic

    Public Property ParameterXml As String

    C#

    public string ParameterXml { get; set; }

    C++

    
    

    J#

    
    

    JScript

    
    
    属性值

    Returns String.

     

     

    Use the Publish Request Schema to compose the correct XML to pass for this parameter.

    You can publish the following solution components:

    Entities

    Use the logical name of the entity. The following example publishes just the account entity including any attributes, ribbons or forms associated with it.

    Visual Basic
    复制代码

    <importexportxml>
     <entities>
      <entity>account</entity>
     </entities>
    </importexportxml>

    Ribbons

    Publishes the Application Ribbon. You do not need to specify any value. The application ribbon will be published as long as the <ribbon> node is present.

    Xml
    复制代码

    <importexportxml>
     <ribbons>
      <ribbon></ribbon>
     </ribbons>
    </importexportxml>

    Dashboards

    Publishes the SystemForm (dashboard) for the ID value passed.

    Xml
    复制代码

    <importexportxml>
     <dashboards>
      <dashboard>{DEDBADA0-1C50-4E0B-BC88-5CE4225D6561}</dashboard>
     </dashboards>
    </importexportxml>

    Option Sets

    Publishes an optionset using the optionset unique name.

    Xml
    复制代码

    <importexportxml>
     <optionsets>
      <optionset>sample_customoptionset</optionset>
     </optionsets>
    </importexportxml>

    Site Map

    Publishes the SiteMap. Since there is only one sitemap it is not necessary to pass a value.

    Xml
    复制代码

    <importexportxml>
     <sitemaps>
      <sitemap></sitemap>
     </sitemaps>
    </importexportxml>

    Web Resources

    Publishes a Web resource using the web resource id value.

    Xml
    复制代码

    <importexportxml>
     <webresources>
      <webresource>{025225B2-CF33-4CDB-8ACD-C6205404191E}</webresource>
     </webresources>
    </importexportxml>

    The following example publishes the account and contact entity together with two Web resources.

    Xml
    复制代码

    <importexportxml>
     <entities>
      <entity>account</entity>
      <entity>contact</entity>
     </entities>
     <webresources>
      <webresource>{025225B2-CF33-4CDB-8ACD-C6205404191E}</webresource>
      <webresource>{6B72CB14-D27D-4197-B494-C1A06C977C41}</webresource>
     </webresources>
    </importexportxml>

    线程安全

    Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

    平台

    Development Platforms
    Windows Server 2008
    目标平台
    Windows 7 (All Versions), Windows Vista (All Versions), Windows XP Professional SP2, Windows XP Home Edition SP2, Windows XP Media Center Edition SP2, Windows XP Tablet PC Edition SP2
  • 相关阅读:
    pku 1061 青蛙的约会 扩展欧几里得
    莫比乌斯反演
    51Nod 1240 莫比乌斯函数
    51Nod 1284 2 3 5 7的倍数 容斥原理
    51Nod 1110 距离之和最小 V3 中位数 思维
    51Nod 1108 距离之和最小 V2 1096 距离之和最小 中位数性质
    HDU 2686 Matrix 多线程dp
    51Nod 1084 矩阵取数问题 V2 双线程DP 滚动数组优化
    HDU 1317XYZZY spfa+判断正环+链式前向星(感觉不对,但能A)
    设计模式(4)---单例模式
  • 原文地址:https://www.cnblogs.com/bcszz/p/2508008.html
Copyright © 2011-2022 走看看