Book Image

Windows PowerShell for .NET Developers - Second Edition - Second Edition

Book Image

Windows PowerShell for .NET Developers - Second Edition - Second Edition

Overview of this book

Windows PowerShell 5.0 for .NET Developers is your self-start guide to performing automation using Windows PowerShell. This book will help you to understand the PowerShell syntax and grammar and will also teach you techniques to remove the rough edges of manual deployments. Packed with PowerShell scripts and sample C# codes to automate tasks, it also includes real-world scenarios such as administrating office servers to help you save time and perform deployments swiftly and efficiently. The book begins with the Windows PowerShell basics, explores the significant features of Windows Management Framework 5.0, covers the basic concepts of Desired State Configuration and the importance of idempotent deployments. By the end of the book, you will have a good understanding of Windows PowerShell’s features and will be able to automate your tasks and manage configuration effectively.
Table of Contents (13 chapters)

Client-side object model – SharePoint Online


What is CSOM? What can it do for SharePoint developers and IT professionals? Most of the SharePoint developers use CSOM in the code and all are familiar with .NET. So, in this topic we would like to share CSOM and its importance. CSOM includes JavaScript object model (JSOM). Developers think a lot before consuming REST, CSOM, and web services for either developing or helping IT Professionals in automation tasks. Each has its own pros and cons. It depends on when and how we use it. So, let us ignore REST and web service for now, and focus on CSOM, because this works based on the .NET Client-side object model of the SharePoint platform.

  • CSOM is an acronym for Client-side object model

  • CSOM provides a subset of the Server Object Model

  • CSOM supports remote execution via JavaScript and .NET

  • CSOM allows Collaborative Application Markup Language (CAML) query to query SharePoint lists

  • CSOM has three distinct API, these are:

    1. .NET managed client object.

      This has...