Export (0) Print
Expand All

ConnectionOptions Constructor (String, String, SecureString, String, ImpersonationLevel, AuthenticationLevel, Boolean, ManagementNamedValueCollection, TimeSpan)

Creates a new ConnectionOption.

Namespace:  System.Management
Assembly:  System.Management (in System.Management.dll)

public ConnectionOptions(
	string locale,
	string username,
	SecureString password,
	string authority,
	ImpersonationLevel impersonation,
	AuthenticationLevel authentication,
	bool enablePrivileges,
	ManagementNamedValueCollection context,
	TimeSpan timeout


Type: System.String

The locale to be used for the connection.

Type: System.String

The user name to be used for the connection. If null, the credentials of the currently logged-on user are used.

Type: System.Security.SecureString

The password for the given user name. If the user name is also null, the credentials used will be those of the currently logged-on user.

Type: System.String

The authority to be used to authenticate the specified user.

Type: System.Management.ImpersonationLevel

The COM impersonation level to be used for the connection.

Type: System.Management.AuthenticationLevel

The COM authentication level to be used for the connection.

Type: System.Boolean

true to enable special user privileges; otherwise, false. This parameter should only be used when performing an operation that requires special Windows NT user privileges.

Type: System.Management.ManagementNamedValueCollection

A provider-specific, named value pairs object to be passed through to the provider.

Type: System.TimeSpan

Reserved for future use.

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5 SP1, 3.0 SP1, 2.0 SP1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

© 2014 Microsoft