.NET core 访问SharePoint Online
补充:
String 和SecureString 的转换:
String to SecureString: SecureString theSecureString = new NetworkCredential("", "myPass").SecurePassword;
SecureString to String: string theString = new NetworkCredential("", theSecureString).Password;