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

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
)

Parameters

locale
Type: System.String

The locale to be used for the connection.

username
Type: System.String

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

password
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.

authority
Type: System.String

The authority to be used to authenticate the specified user.

impersonation
Type: System.Management.ImpersonationLevel

The COM impersonation level to be used for the connection.

authentication
Type: System.Management.AuthenticationLevel

The COM authentication level to be used for the connection.

enablePrivileges
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.

context
Type: System.Management.ManagementNamedValueCollection

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

timeout
Type: System.TimeSpan

Reserved for future use.

.NET Framework
Available since 2.0
Return to top
Show:
© 2016 Microsoft