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
屬性
實作

建構函式

名稱 Description
ActionContext()

初始化一個新的類別實例 ActionContext ,使用預設屬性值。

ActionContext(IContext)

初始化一個新的類別實例 ActionContext ,並使用指定的上下文參數。

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

初始化一個新的類別實例 ActionContext ,並使用指定的服務提供者與屬性參數。

ActionContext(IServiceProvider)

初始化類別中指定的服務提供者參數的新實例 ActionContext

屬性

名稱 Description
Count

取得物業字典中的項目數量。

(繼承來源 PropertyDictionary)
IsReadOnly

得到一個值,表示該屬性是否可被修改。

(繼承來源 PropertyDictionary)
Item[String]

取得或設定位於指定索引鍵的專案。

(繼承來源 PropertyDictionary)
Keys

拿到房產的鑰匙。

(繼承來源 PropertyDictionary)
Values

取得包含字典中值的 ICollection 物件。

(繼承來源 PropertyDictionary)

方法

名稱 Description
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)

事件

名稱 Description
PropertyChanged

發生在更改應用程式設定屬性的值之後。

(繼承來源 PropertyDictionary)
PropertyMetadataChanged

發生在元資料屬性的值被更改之後。

(繼承來源 PropertyDictionary)

明確介面實作

名稱 Description
IEnumerable.GetEnumerator()

回傳一個列舉器,會遍歷目前的集合物件。

(繼承來源 PropertyDictionary)

適用於