Developer code samples

Download code samples and applications for Windows 8, Windows Phone, Microsoft Azure, Office, SharePoint, Silverlight and other products. You can also explore the Official Visual Studio C#, VB.NET, and 101 LINQ samples.New samples are added frequently in JavaScript, C++, C#, Visual Basic, and F#.
Each sample is licensed to you by the party distributing it. Microsoft does not guarantee the samples or grant rights for any sample distributed by a party other than Microsoft. Use of this site is subject to the Terms of Use.
Sort by: rss
9702 results
Visual Studio Product Team

Visual Studio Product Team MSFT

Visual Studio Platform Team samples are developed and tested by the Visual Studio Platform Team to ensure that you have a great experience.

View samples
- Microsoft
This sample shows different uses of Query Execution
Featured
C#
Shashangka Shekhar
Microsoft Cognitive Services, formerly known as Project Oxford are a set of machine-learning application programming interfaces (REST APIs), SDKs and services that helps developers to make smarter application by add intelligent features – such as emotion and video detection; faci
No Star
(0)
Updated 1/9/2017
Released 1/9/2017
2 Downloads
Kareninstructor
DescriptionThis code sample shows how to copy a table in one database to a matching table in another database. Example we have a table with customers first name, last name, gender and keep a backup copy of the data in a secondary database. To keep things in sync you could have a
No Star
(0)
Updated 1/8/2017
Released 1/8/2017
4 Downloads
C#, SQL
João Eduardo Sousa
This article walks you through the steps for creating a ASP.NET Core Web Application using Bootstrap as template for layout and change it to a new one.
5 Star
(2)
Updated 1/9/2017
Released 1/8/2017
16 Downloads
C#
J Suthahar
Introduction:

Azure SQL Database is a cloud-based relational database service from Microsoft. In this article, I will share following



How to create an azure database and server.

Configure Azure SQL Server firewall

Connect to Azure SQL Database via SQL Server Manag
5 Star
(1)
Updated 1/8/2017
Released 1/8/2017
RajeeshMenoth
Introduction

We will continue the second part of Middleware And Staticfiles in ASP.NET Core 1.0. Before reading this article, you must read my previous article ASP.NET Core 1.0: Middleware And Static files (Part 1) because I have explained some important parts in my previous a
No Star
(0)
Updated 1/8/2017
Released 1/8/2017
7 Downloads
C#
James Pate Williams Jr
This application uses a bit-based unsigned long long (64-bits) array prime number sieve. On my 16 GB memory Intel Quad Core I7 machine (late 2015) I can sieve all primes <= 150,000,000 in a reasonable amount of time. I also use the sieve to find all n <= 1,000,000 such that p[i]
No Star
(0)
Updated 1/8/2017
Released 1/8/2017
2 Downloads
C++
James Pate Williams Jr
This is a multithreading version of the second brute force method used in my project "Unsigned Long Long Bit-Based Prime Number Sieve in C++". Multithreading using four threads reduces the computation time by over a half. I chose four threads since my computer has a quad core Int
No Star
(0)
Updated 1/8/2017
Released 1/7/2017
6 Downloads
C++
Rob Fox
Sometimes BizTalk maps can be quite frustrating. You can't get something done in the mapper designer and you eventually resort to mapping in XSLT. But sometimes even that is not enough. If you have a complex map and your messages are large, mapping may take
forever. There's a w
No Star
(0)
Updated 1/7/2017
Released 1/7/2017
6 Downloads
C#, XML
Vasily Kalugin
SSRS RDLC report How To: Report, Processing Subreport, Drillthrough report.How to open rdlc report with - report viewer.How to processing subreport.How to  drillthrough report.    Completly working web application - application use SQLiteFactory
3 Star
(2)
Updated 1/9/2017
Released 1/7/2017
17 Downloads
Jaliya Udagedara

In this example let's see how we can remove/delete an item from a collection in terms of Entity Framework.

It's always better to go with an example, consider the following scenario.

I have an entity, Department which has Contacts.

public class Department
{
public
No Star
(0)
Updated 1/6/2017
Released 1/6/2017
6 Downloads
C#

Couldn't find the sample you were looking for?

1 - 10 of 9702 Items