Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

PSSessionOption.MaximumConnectionRedirectionCount Property

Gets or sets the maximum number of times that Windows PowerShell redirects a connection to an alternate universal resource identifier (URI) before the connection fails.


Namespace: System.Management.Automation.Remoting
Assembly: System.Management.Automation (in System.Management.Automation.dll)
'Usage
Dim instance As PSSessionOption
Dim value As Integer

value = instance.MaximumConnectionRedirectionCount

instance.MaximumConnectionRedirectionCount = value
public int MaximumConnectionRedirectionCount { get; set; }
/** @property */
public int get_MaximumConnectionRedirectionCount ()

/** @property */
public void set_MaximumConnectionRedirectionCount (int value)

public function get MaximumConnectionRedirectionCount () : int

public function set MaximumConnectionRedirectionCount (value : int)

Property Value

An Int32 value that specifies the maximum number of times that Windows PowerShell redirects a connection to an alternate URI before the connection fails. The default value is 5. A value of 0 prevents all redirection. A value of -1 means that there is an unlimited number of redirections.

The PSSessionOption object is returned by the New-PSSessionOption cmdlet.


Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

 

Target Platforms

Windows Developer Preview, Windows Server Developer Preview

Send comments about this topic to Microsoft.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.