GetCredentialCommand.UserName Property
Definition
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.
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