ActionContext Constructors

Definition

Initializes a new instance of the ActionContext class.

Overloads

ActionContext()

Initializes a new instance of the ActionContext class with the default property values.

ActionContext(IContext)

Initializes a new instance of the ActionContext class with the specified context parameter.

ActionContext(IServiceProvider)

Initializes a new instance of the ActionContext class with the specified service provider parameter.

ActionContext(IServiceProvider, IEnumerable<KeyValuePair<String,Object>>)

Initializes a new instance of the ActionContext class with the specified service provider and properties parameters.

ActionContext()

Initializes a new instance of the ActionContext class with the default property values.

public:
 ActionContext();
public ActionContext ();
Public Sub New ()

Applies to

ActionContext(IContext)

Initializes a new instance of the ActionContext class with the specified context parameter.

public:
 ActionContext(Microsoft::SqlServer::Management::Data::IContext ^ context);
public ActionContext (Microsoft.SqlServer.Management.Data.IContext context);
new Microsoft.SqlServer.Management.ActionContext : Microsoft.SqlServer.Management.Data.IContext -> Microsoft.SqlServer.Management.ActionContext
Public Sub New (context As IContext)

Parameters

context
IContext

Represents the context of the action.

Applies to

ActionContext(IServiceProvider)

Initializes a new instance of the ActionContext class with the specified service provider parameter.

public:
 ActionContext(IServiceProvider ^ serviceProvider);
public ActionContext (IServiceProvider serviceProvider);
new Microsoft.SqlServer.Management.ActionContext : IServiceProvider -> Microsoft.SqlServer.Management.ActionContext
Public Sub New (serviceProvider As IServiceProvider)

Parameters

serviceProvider
IServiceProvider

Provides a service to other objects.

Applies to

ActionContext(IServiceProvider, IEnumerable<KeyValuePair<String,Object>>)

Initializes a new instance of the ActionContext class with the specified service provider and properties parameters.

public:
 ActionContext(IServiceProvider ^ serviceProvider, System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<System::String ^, System::Object ^>> ^ properties);
public ActionContext (IServiceProvider serviceProvider, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,object>> properties);
new Microsoft.SqlServer.Management.ActionContext : IServiceProvider * seq<System.Collections.Generic.KeyValuePair<string, obj>> -> Microsoft.SqlServer.Management.ActionContext
Public Sub New (serviceProvider As IServiceProvider, properties As IEnumerable(Of KeyValuePair(Of String, Object)))

Parameters

serviceProvider
IServiceProvider

Provides a service to other objects.

properties
IEnumerable<KeyValuePair<String,Object>>

Defines a key/value pair that can be set or retrieved.

Applies to