Windows Dev Center

RegisterPSSessionConfiguration.RunAsCredential Property

Provides access to the RunAsCredential parameter. Introduced in Windows PowerShell 3.0.

Namespace: Microsoft.PowerShell.Core.Activities
Assembly: Microsoft.PowerShell.Core.Activities (in Microsoft.PowerShell.Core.Activities.dll)

Dim instance As RegisterPSSessionConfiguration
Dim value As InArgument(Of PSCredential)

value = instance.RunAsCredential

instance.RunAsCredential = value

property InArgument<PSCredential^>^ RunAsCredential {
	InArgument<PSCredential^>^ get ();
	void set (InArgument<PSCredential^>^ value);
/** @property */
/** @attribute CompilerGeneratedAttribute() */ 
public InArgument<PSCredential> get_RunAsCredential ()

/** @property */
/** @attribute CompilerGeneratedAttribute() */ 
public void set_RunAsCredential (InArgument<PSCredential> value)

public function get RunAsCredential () : InArgument<PSCredential>

public function set RunAsCredential (value : InArgument<PSCredential>)

Property Value

Returns InArgument.

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

© 2015 Microsoft