ActionContext 类

定义

提供操作在执行过程中的上下文。

public ref class ActionContext : Microsoft::SqlServer::Management::Data::PropertyDictionary, IEquatable<Microsoft::SqlServer::Management::Data::IContext ^>, IServiceProvider, Microsoft::SqlServer::Management::Data::IContext, Microsoft::SqlServer::Management::Sdk::Sfc::ISfcPropertySet, System::Collections::Generic::ICollection<System::Collections::Generic::KeyValuePair<System::String ^, System::Object ^>>, System::Collections::Generic::IDictionary<System::String ^, System::Object ^>, System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<System::String ^, System::Object ^>>, System::ComponentModel::Design::IServiceContainer
[System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.AutoDispatch)]
[System.Runtime.InteropServices.ComVisible(true)]
public class ActionContext : Microsoft.SqlServer.Management.Data.PropertyDictionary, IEquatable<Microsoft.SqlServer.Management.Data.IContext>, IServiceProvider, Microsoft.SqlServer.Management.Data.IContext, Microsoft.SqlServer.Management.Sdk.Sfc.ISfcPropertySet, System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<string,object>>, System.Collections.Generic.IDictionary<string,object>, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,object>>, System.ComponentModel.Design.IServiceContainer
[<System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.AutoDispatch)>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type ActionContext = class
    inherit PropertyDictionary
    interface IContext
    interface IPropertyDictionary
    interface ISfcPropertySet
    interface IDictionary<string, obj>
    interface ICollection<KeyValuePair<string, obj>>
    interface seq<KeyValuePair<string, obj>>
    interface IEnumerable
    interface IEquatable<IContext>
    interface IServiceContainer
    interface IServiceProvider
Public Class ActionContext
Inherits PropertyDictionary
Implements ICollection(Of KeyValuePair(Of String, Object)), IContext, IDictionary(Of String, Object), IEnumerable(Of KeyValuePair(Of String, Object)), IEquatable(Of IContext), IServiceContainer, IServiceProvider, ISfcPropertySet
继承
ActionContext
属性
实现

构造函数

ActionContext()

使用默认属性值初始化 ActionContext 类的新实例。

ActionContext(IContext)

使用指定的上下文参数初始化 ActionContext 类的新实例。

ActionContext(IServiceProvider)

使用指定的服务提供程序参数初始化 ActionContext 类的新实例。

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

使用指定的服务提供程序和属性参数初始化 ActionContext 类的新实例。

属性

Count

获取属性字典中的项计数。

(继承自 PropertyDictionary)
IsReadOnly

获取一个值,该值指示是否可以修改该属性。

(继承自 PropertyDictionary)
Item[String]

获取或设置指定键处的项。

(继承自 PropertyDictionary)
Keys

获取属性的键。

(继承自 PropertyDictionary)
Values

获取包含字典中的值的 ICollection 对象。

(继承自 PropertyDictionary)

方法

Add(IEnumerable<KeyValuePair<String,Object>>, PropertyCollisionResolution)

指定要添加到字典中的字符串输入。

(继承自 PropertyDictionary)
Add(ISfcProperty)

指示要添加到字典中的属性。

(继承自 PropertyDictionary)
Add(ISfcProperty, PropertyCollisionResolution)

指定要添加到字典中的字符串值。

(继承自 PropertyDictionary)
Add(KeyValuePair<String,Object>)

指示要在字典中添加的指定字符串值。

(继承自 PropertyDictionary)
Add(KeyValuePair<String,Object>, PropertyCollisionResolution)

指示字典中的添加值。

(继承自 PropertyDictionary)
Add(String, Object)

将指定的键和值添加到字典中。

(继承自 PropertyDictionary)
Add(String, Object, PropertyCollisionResolution)

指示要添加的具有指定键、值和事件的属性值。

(继承自 PropertyDictionary)
Add(String, Type)

指示要添加的具有指定名称和类型的属性值。

(继承自 PropertyDictionary)
Add(String, Type, PropertyCollisionResolution)

指示要使用 PropertyCollisionResolution 添加的属性值。

(继承自 PropertyDictionary)
AddService(Type, Object)

将指定的服务添加到服务容器中。 此类不能被继承。

AddService(Type, Object, Boolean)

将指定的服务添加到服务容器,并将此服务提升到任何父级服务容器(可选)。 此类不能被继承。

AddService(Type, ServiceCreatorCallback)

将指定的服务添加到服务容器中。 此类不能被继承。

AddService(Type, ServiceCreatorCallback, Boolean)

将指定的服务添加到服务容器,并将此服务提升到父级服务容器(可选)。 此类不能被继承。

Clear()

清除属性的内容。 此类不能被继承。

(继承自 PropertyDictionary)
Contains(ISfcProperty)

确定指示要包含的指定对象的值。

(继承自 PropertyDictionary)
Contains(KeyValuePair<String,Object>)

提供 PropertyDictionary 的对象。

(继承自 PropertyDictionary)
Contains(String)

确定字典是否包含特定的属性名称。

(继承自 PropertyDictionary)
Contains<T>(String)

指示字典是否包含特定名称的值。

(继承自 PropertyDictionary)
ContainsKey(String)

确定字典是否包含指定的键。

(继承自 PropertyDictionary)
CopyTo(KeyValuePair<String,Object>[], Int32)

将字典条目复制到指定索引处的一维数组实例。

(继承自 PropertyDictionary)
EnumProperties()

指示 PropertyDictionary 的可枚举属性。

(继承自 PropertyDictionary)
Equals(IContext)

确定指定的对象是否等于具有指定上下文的当前对象。

GetEnumerator()

检索遍历字典的枚举器。

(继承自 PropertyDictionary)
GetPropertySet()

指示 PropertyDictionary 中的特定属性。

(继承自 PropertyDictionary)
GetService(Type)

获取指定类型的服务对象。

OnPropertyChanged(String)

指定已更改的属性的指定值。

(继承自 PropertyDictionary)
OnPropertyMetadataChanged(String)

指示当元数据中的属性更改时的值。

(继承自 PropertyDictionary)
Remove(KeyValuePair<String,Object>)

返回指示要删除的对象的值。

(继承自 PropertyDictionary)
Remove(String)

从集合中删除具有指定键的元素。

(继承自 PropertyDictionary)
RemoveService(Type)

从服务容器中删除指定的服务类型。 此类不能被继承。

RemoveService(Type, Boolean)

从服务容器中删除指定的服务类型,并将此服务提升到父级服务容器(可选)。 此类不能被继承。

TryGetProperty(String, ISfcProperty)

检索与指定键相关联的属性。 此类不能被继承。

(继承自 PropertyDictionary)
TryGetPropertyValue(String, Object)

检索一个值,该值指示要获取的属性。

(继承自 PropertyDictionary)
TryGetPropertyValue<T>(String, T)

检索一个值,该值指示要使用项列表获取的属性。

(继承自 PropertyDictionary)
TryGetValue(String, Object)

检索与指定键相关联的值。

(继承自 PropertyDictionary)

事件

PropertyChanged

在应用程序设置属性的值更改后发生。

(继承自 PropertyDictionary)
PropertyMetadataChanged

在元数据属性的值更改后发生。

(继承自 PropertyDictionary)

显式接口实现

IEnumerable.GetEnumerator()

返回遍历当前 Collection 对象的枚举器。

(继承自 PropertyDictionary)

适用于