K. G. Sreeju Nair
Knowledge has to be improved, challenged, and increased constantly, or it vanishes.
-
C# 7 - Return multiple values from methods
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);
} -
Develop SharePoint Add-In using SharePoint 2016 On Premise and Visual Studio
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.
-
Backup and Restore Site Collection with Managed Navigation
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
-
Create an offline installer for Visual Studio 2017
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
-
Change the default location for Projects in Visual Studio 2015
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.
-
Walkthrough: Installing SharePoint 2016
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.
https://weblogs.asp.net/sreejukg/installing-sharepoint-2007-moss-2007
-
Web API - Documentation & Testing
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.
-
Hide Ribbon in SharePoint 2013 Publishing site
In SharePoint all authenticated users will see the ribbon control in the top of the page.
-
Send email using Office 365 account and C#
Microsoft Cloud offering “Office 365” is becoming popular day by day. One of the mostly used feature in Office 365 is the exchange online. Lots of customers are moving their emails to exchange online.
The developers now needs to send email notifications using Exchange online as their SMTP Server. Office 365 offers various integration options that allows your devices/applications to connect and send email. Refer the below technet article for more details.
https://technet.microsoft.com/en-us/library/dn554323(v=exchg.150).aspx
-
The Null Conditional Operator