One of my customer, who was using a popular video service to render all his video files in the website was looking for alternatives. The concerns from the customer were the following
It was a long-awaited feature to return multiple values from a method. Developers used collection variables such as Array, ArrayList or Generic List to return multiple values from methods. Now with Visual Studio 2017 and C# 7, you can easily return multiple values with the help of Tuples.
In this article, I am going to explain how tuples can be used in C# 7 onwards to return multiple values.
Consider the following code from the console application. The method GetDivisionResults accepts two parameters namely number and divisor and returns two integers that are quotient and remainder.
static void Main(string args)
int number = 17;
int devisor = 5;
var result = GetDivisionResults(17, 5);
Console.WriteLine("Quotient is " + result.Item1);
Console.WriteLine("Remainder is " + result.Item2);
In this article, I am going to explain how to create SharePoint hosted Add-In using Visual Studio and how to deploy this Add-In to SharePoint 2016 on premise version.
Building a successful Add-in include two steps. First you need to author your Add-In using Visual Studio. Once you build your Add-in you need to deploy this Add-In to a SharePoint environment and test the Add-In. You can deploy the Add-In to SharePoint online or to the on-premise SharePoint. This article covers the deployment of Add-in to the On Premises version.
Step 1: Create Your Add-In
Open Visual Studio as administrator. From the Menu, select File -> New -> Project
In the new Project Dialog box, from the left menu, expand Visual C#, then Office/SharePoint and choose SharePoint Add-in. Also you can use the search box in the top right corner to locate the Add-n Project template.
Managed navigation in SharePoint allows you to define SEO friendly URLs to SharePoint pages. This feature helps your visitors remember the URLs and also increases your page ranking in search engines. Once you enable the managed navigation for your site, SharePoint relates every page with a navigation term. To understand more about managed navigation, find the MSDN link
Since Visual Studio 2017 is released, I wanted to try it as usual. But I found, there is no ISO available for Visual Studio 2017. But there is a beautiful guide available that explains how to create an offline installer for Visual Studio. You can find the document in the below link
When you create a project in Visual studio 2015, the first thing you need to choose is the location for the project. By default the location is under the documents which is under the system drive. The below screenshot shows the new project dialog with the default location.
Over the past years, every time a SharePoint version pops out, I used to share my installation experience. I have done this for 2007, 2010 and 2013.
You can refer those posts from the below URLs.
ASP.Net Web API is a framework for building HTTP Services. ASP.Net Web API makes it easy to write Restful applications on the .Net framework. Writing HTTP services is part of almost every developer’s job.
In SharePoint all authenticated users will see the ribbon control in the top of the page.