• Skip to main content
  • Skip to primary sidebar

Technical Notes Of
Ehi Kioya

Technical Notes Of Ehi Kioya

  • About
  • Contact
MENUMENU
  • Blog Home
  • AWS, Azure, Cloud
  • Backend (Server-Side)
  • Frontend (Client-Side)
  • SharePoint
  • Tools & Resources
    • CM/IN Ruler
    • URL Decoder
    • Text Hasher
    • Word Count
    • IP Lookup
  • Linux & Servers
  • Zero Code Tech
  • WordPress
  • Musings
  • More
    Categories
    • Cloud
    • Server-Side
    • Front-End
    • SharePoint
    • Tools
    • Linux
    • Zero Code
    • WordPress
    • Musings

CSharp

Convert SharePoint login name to claims format and back using C#

October 13, 2016 by Ehi Kioya Leave a Comment

Convert SharePoint login name to claims format

SharePoint developers often need to manipulate the SharePoint or Active Directory login name programmatically. The short code samples here demonstrate how to convert back and forth between the claims format and the regular SharePoint login name.

Filed Under: Backend (Server-Side), SharePoint Tagged With: Claims, CSharp, Programming, SharePoint

Active Directory user impersonation with C#

October 12, 2016 by Ehi Kioya 17 Comments

Active Directory user impersonation

This article provides a managed wrapper for the LogonUser function of the Win32 API. It allows you to perform active directory user impersonation using C#. You just need to have the credentials of the user.

Filed Under: Backend (Server-Side), SharePoint Tagged With: Active Directory, CSharp, Impersonation, SharePoint

SharePoint user impersonation with C# [SSOM]

October 12, 2016 by Ehi Kioya 2 Comments

SharePoint User Impersonation C#

Very often, developers need to execute some code in the context of another user. This article explains how to do SharePoint user impersonation with C# using the Server-Side Object Model (SSOM).

Filed Under: Backend (Server-Side), SharePoint Tagged With: CSharp, Impersonation, SharePoint

Delete Folder With Read-Only Contents Using C#

January 28, 2016 by Ehi Kioya Leave a Comment

Delete Folder C#

To delete a folder and its contents using C# is not necessarily as easy and straightforward as you might think. It becomes tricky when one or more files are marked as read-only. Here’s a recursive helper method.

Filed Under: Backend (Server-Side), C# Tagged With: CSharp, Programming

Iterating List Items In Batches With C# [Chunking]

January 28, 2016 by Ehi Kioya Leave a Comment

Chunking An Enumerable In C#

There are lots of programming situations where it is necessary to break up a large amount of work into smaller more manageable pieces or chunks. The technique is known as “Chunking” and is frequently used when a huge list needs to be iterated in batches of say, 100 items at a time.

Filed Under: Backend (Server-Side), C# Tagged With: Chunking, CSharp, Programming

Add Event Receiver To Specific List Instance In SharePoint

July 29, 2015 by Ehi Kioya 7 Comments

Event Receiver

When binding SharePoint event receivers to lists and libraries, the generic method involves using the ListTemplateId element. The problem with this method is that it adds the event receiver to all lists with a matching ListTemplateId. However, in many cases, we only want our event receivers attached to specific list instances. Here’s an explanation of how to dynamically add an event receiver to lists with specific names across an entire site and its sub sites using C#.

Filed Under: Backend (Server-Side), SharePoint Tagged With: CSharp, SharePoint

  • « Go to Previous Page
  • Go to page 1
  • Go to page 2
  • Go to page 3
  • Go to page 4
  • Go to Next Page »

Primary Sidebar

23,571
Followers
Follow
30,000
Connections
Connect
14,568
Page Fans
Like
  • Recently   Popular   Posts   &   Pages
  • Actual Size Online Ruler Actual Size Online Ruler
    I created this page to measure your screen resolution and produce an online ruler of actual size. It's powered with JavaScript and HTML5.
  • Fix For “Function create_function() is deprecated” In PHP 7.2 Fix For "Function create_function() is deprecated" In PHP 7.2
    As of PHP 7.2 create_function() has been deprecated because it uses eval(). You should replace it with an anonymous function instead.
  • How To Change A SharePoint List Or Library URL How To Change A SharePoint List Or Library URL
    All versions of the SharePoint user interface provide an option to change the title (or display name) of a list or library. Changing SharePoint library URL (or internal name), however, is not exactly very intuitive. We will discuss the process in this article.
  • « Go to Previous Page
  • Go to page 1
  • Go to page 2
  • Go to page 3
  • Go to page 4
  • Go to Next Page »
  • About
  • Contact

© 2022   ·   Ehi Kioya   ·   All Rights Reserved
Privacy Policy