Download PowerShell-master/src/Microsoft.WSMan.Runtime/WSManSessionOption.cs from MegaBites-AI/Windows-powershell: direct link, hf CLI and curl.
- Browser
- Download file 2.66 kB
-
https://huggingface.co/datasets/MegaBites-AI/Windows-powershell/resolve/main/PowerShell-master/src/Microsoft.WSMan.Runtime/WSManSessionOption.cs
- Command line
-
hf download hf://datasets/MegaBites-AI/Windows-powershell/PowerShell-master/src/Microsoft.WSMan.Runtime/WSManSessionOption.cs
-
curl -L -o WSManSessionOption.cs https://huggingface.co/datasets/MegaBites-AI/Windows-powershell/resolve/main/PowerShell-master/src/Microsoft.WSMan.Runtime/WSManSessionOption.cs
2.66 kB
| // Copyright (c) Microsoft Corporation. | |
| // Licensed under the MIT License. | |
| using System; | |
| using System.Diagnostics.CodeAnalysis; | |
| using System.Net; | |
| [] | |
| namespace Microsoft.WSMan.Management | |
| { | |
| /// <summary> | |
| /// Session option class. | |
| /// </summary> | |
| public sealed class SessionOption | |
| { | |
| /// <summary> | |
| /// Property. | |
| /// </summary> | |
| public bool SkipCACheck { get; set; } | |
| /// <summary> | |
| /// Property. | |
| /// </summary> | |
| public bool SkipCNCheck { get; set; } | |
| /// <summary> | |
| /// Property. | |
| /// </summary> | |
| public bool SkipRevocationCheck { get; set; } | |
| /// <summary> | |
| /// Property. | |
| /// </summary> | |
| public bool UseEncryption { get; set; } = true; | |
| /// <summary> | |
| /// Property. | |
| /// </summary> | |
| public bool UseUtf16 { get; set; } | |
| /// <summary> | |
| /// Property. | |
| /// </summary> | |
| public ProxyAuthentication ProxyAuthentication { get; set; } | |
| /// <summary> | |
| /// Property. | |
| /// </summary> | |
| [] | |
| public int SPNPort { get; set; } | |
| /// <summary> | |
| /// Property. | |
| /// </summary> | |
| public int OperationTimeout { get; set; } | |
| /// <summary> | |
| /// Property. | |
| /// </summary> | |
| public NetworkCredential ProxyCredential { get; set; } | |
| /// <summary> | |
| /// Property. | |
| /// </summary> | |
| public ProxyAccessType ProxyAccessType { get; set; } | |
| } | |
| /// <summary> | |
| /// Property. | |
| /// </summary> | |
| public enum ProxyAccessType | |
| { | |
| /// <summary> | |
| /// Property. | |
| /// </summary> | |
| ProxyIEConfig = 0, | |
| /// <summary> | |
| /// Property. | |
| /// </summary> | |
| ProxyWinHttpConfig = 1, | |
| /// <summary> | |
| /// Property. | |
| /// </summary> | |
| ProxyAutoDetect = 2, | |
| /// <summary> | |
| /// Property. | |
| /// </summary> | |
| ProxyNoProxyServer = 3 | |
| } | |
| /// <summary> | |
| /// Property. | |
| /// </summary> | |
| [] | |
| [] | |
| public enum ProxyAuthentication | |
| { | |
| /// <summary> | |
| /// Property. | |
| /// </summary> | |
| Negotiate = 1, | |
| /// <summary> | |
| /// Property. | |
| /// </summary> | |
| Basic = 2, | |
| /// <summary> | |
| /// Property. | |
| /// </summary> | |
| Digest = 4 | |
| } | |
| } | |