Skip to content

Commit 72023e7

Browse files
committed
updated code snippet
1 parent 558db79 commit 72023e7

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

docs/sp-add-ins/using-csom-for-dotnet-standard.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Using CSOM for .Net Standard instead of CSOM for .Net Framework
33
description: Explains the differences between using CSOM for .Net Standard versus CSOM for .Net Framework
4-
ms.date: 6/15/2020
4+
ms.date: 6/26/2020
55
ms.prod: sharepoint
66
localization_priority: Priority
77
---
@@ -138,11 +138,7 @@ namespace CSOMDemo
138138

139139
public ClientContext GetContext(Uri web, string userPrincipalName, SecureString userPassword)
140140
{
141-
var context = new ClientContext(web)
142-
{
143-
// Important to turn off FormDigestHandling when using access tokens
144-
FormDigestHandlingEnabled = false
145-
};
141+
var context = new ClientContext(web);
146142

147143
context.ExecutingWebRequest += (sender, e) =>
148144
{

0 commit comments

Comments
 (0)