Κοινή χρήση μέσω


Use the sample and helper code

 

Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2016, Dynamics CRM Online

Most managed code samples provided in the Microsoft Dynamics 365 SDK that use the organization and discovery web services are using shared helper code to perform common tasks. You might find this helper code useful in applications that you write. Sample helper code can be found in the following folders in the SDK, and also by following the links provided later in this topic. Download the Microsoft Dynamics CRM SDK package.

SDK\SampleCode\CS\HelperCode

SDK\SampleCode\VB\HelperCode

When writing an application that uses the Microsoft Dynamics 365 SDK, you typically have to perform a number of steps to configure your application’s project. To learn more about setting up a project in Microsoft Visual Studio, or other development environment, see Start a managed code project in Visual Studio.

For more information about running the samples included in the Microsoft Dynamics 365 SDK download, see the SDK\SampleCode\Readme.docx. To view a sample application that uses the helper code and includes the required .NET references, see Run a simple program using Microsoft Dynamics 365 web services.

A non-customized early-bound types file that is named MyOrganizationCrmSdkTypes is included in the SDK download in the SampleCode\CS\HelperCode and SampleCode\VB\HelperCode folders to help get you started. However, if your organization has custom or customized entities, you should generate a new early-bound types file. For the purposes of this documentation, the generated classes are included in the global namespace. For more information, see Create early bound entity classes with the code generation tool (CrmSvcUtil.exe).

See Also

Extend Microsoft Dynamics 365 on the server
Best practices for developing with Microsoft Dynamics 365
Helper code: ServerConnection class
Helper code: DeviceIdManager class
Helper code: SystemUserProvider class
Helper code: Enumerations for option sets
Sample code directory for Microsoft Dynamics 365
Assemblies included in the Microsoft Dynamics 365 SDK
Use Microsoft Dynamics 365 services in code

Microsoft Dynamics 365

© 2016 Microsoft. All rights reserved. Copyright