Share via


WindowsTaskCredentials.UserName Property

[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Gets or sets a string that contains the user name.

Namespace: Microsoft.EnterpriseManagement.Runtime
Assembly: Microsoft.EnterpriseManagement.Runtime (in Microsoft.EnterpriseManagement.Runtime.dll)

Usage

'Usage
Dim instance As WindowsTaskCredentials
Dim value As String

value = instance.UserName

instance.UserName = value

Syntax

'Declaration
Public Property UserName As String
public string UserName { get; set; }
public:
property String^ UserName {
    String^ get ();
    void set (String^ value);
}
/** @property */
public String get_UserName ()

/** @property */
public void set_UserName (String value)
public function get UserName () : String

public function set UserName (value : String)

Property Value

Returns String.

A string that contains the user name.

Thread Safety

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

Platforms

Development Platforms

Windows Vista, Windows Server 2003, and

Target Platforms

See Also

Reference

WindowsTaskCredentials Class
WindowsTaskCredentials Members
Microsoft.EnterpriseManagement.Runtime Namespace