语言

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, IEnumerable<KeyValuePair<String,Object>>)

初始化一个新的类实例 ActionContext ,使用指定的服务提供商和属性参数。

ActionContext(IServiceProvider)

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

属性

名称 说明
Count

获取财产词典中的物品计数。

(继承自 PropertyDictionary)
IsReadOnly

得到一个值,表示该属性是否可以被修改。

(继承自 PropertyDictionary)
Item[String]

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

(继承自 PropertyDictionary)
Keys

拿到房产钥匙。

(继承自 PropertyDictionary)
Values

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

(继承自 PropertyDictionary)

方法

名称 说明
Add(IEnumerable<KeyValuePair<String,Object>>, PropertyCollisionResolution)

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

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

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

(继承自 PropertyDictionary)
Add(ISfcProperty)

表示需要添加到词典中的属性。

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

表示词典中的附加值。

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

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

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

表示要添加的属性值,并指定键、值和事件。

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

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

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

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

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

表示需添加的属性值,并指定名称和类型。

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

将指定的服务添加到服务容器,并选择性地将该服务提升为任何父服务容器。 此类不能被继承。

AddService(Type, Object)

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

AddService(Type, ServiceCreatorCallback, Boolean)

将指定的服务添加到服务容器,并选择性地将服务提升为父服务容器。 此类不能被继承。

AddService(Type, ServiceCreatorCallback)

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

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, Boolean)

从服务容器中删除指定的服务类型,并选择性地将服务提升为父服务容器。 此类不能被继承。

RemoveService(Type)

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

TryGetProperty(String, ISfcProperty)

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

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

检索一个表示要获得属性的值。

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

通过一项列表获取一个表示要获得属性的值。

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

检索与指定键关联的值。

(继承自 PropertyDictionary)

活动

名称 说明
PropertyChanged

发生在应用设置属性的值被更改之后。

(继承自 PropertyDictionary)
PropertyMetadataChanged

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

(继承自 PropertyDictionary)

显式接口实现

名称 说明
IEnumerable.GetEnumerator()

返回一个枚举器,遍历当前集合对象。

(继承自 PropertyDictionary)

适用于