Partilhar via


GetCredentialCommand.UserName Property

Definition

Gets and sets the user supplied username to be used while creating the PSCredential.

public:
 property System::String ^ UserName { System::String ^ get(); void set(System::String ^ value); };
public:
 property Platform::String ^ UserName { Platform::String ^ get(); void set(Platform::String ^ value); };
public string UserName { get; set; }
[System.Management.Automation.Parameter(Mandatory=false, ParameterSetName="MessageSet", Position=0)]
[System.Management.Automation.ValidateNotNullOrEmpty]
public string UserName { get; set; }
member this.UserName : string with get, set
[<System.Management.Automation.Parameter(Mandatory=false, ParameterSetName="MessageSet", Position=0)>]
[<System.Management.Automation.ValidateNotNullOrEmpty>]
member this.UserName : string with get, set
Public Property UserName As String

Property Value

Attributes

Applies to