Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

WebRequestSession Class

Definition

Namespace:
Microsoft.PowerShell.Commands
Assembly:
Microsoft.PowerShell.Commands.Utility.dll
Package:
Microsoft.PowerShell.5.1.ReferenceAssemblies v1.0.0
Package:
Microsoft.PowerShell.Commands.Utility v7.4.15
Package:
Microsoft.PowerShell.Commands.Utility v7.5.6
Package:
Microsoft.PowerShell.Commands.Utility v7.6.1

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

WebRequestSession for holding session infos.

public ref class WebRequestSession
[Windows::Foundation::Metadata::WebHostHidden]
class WebRequestSession
public class WebRequestSession
[System.Runtime.CompilerServices.Nullable(0)]
public class WebRequestSession : IDisposable
type WebRequestSession = class
[<System.Runtime.CompilerServices.Nullable(0)>]
type WebRequestSession = class
 interface IDisposable
Public Class WebRequestSession
Public Class WebRequestSession
Implements IDisposable
Inheritance
WebRequestSession
Attributes
Implements

Constructors

Name Description
WebRequestSession()

Initializes a new instance of the WebRequestSession class.

Properties

Name Description
Certificates

Gets or sets the Certificates property.

Cookies

Gets or sets the Cookies property.

Credentials

Gets or sets the Credentials property.

Headers

Gets or sets the Header property.

MaximumRedirection

Gets or sets the MaximumRedirection property.

MaximumRetryCount

Gets or sets the count of retries for request failures.

Proxy

Gets or sets the Proxy property.

RetryIntervalInSeconds

Gets or sets the interval in seconds between retries.

UseDefaultCredentials

Gets or sets the UseDefaultCredentials property.

UserAgent

Gets or sets the UserAgent property.

Methods

Name Description
Dispose()

Dispose the WebRequestSession.

Dispose(Boolean)

Dispose the WebRequestSession.

Applies to