StateChangeEventAttribute 類別
The StateChangeEventAttribute class contains the attribute that is attached to the state change event in policy-based management.
繼承階層
System.Object
System.Attribute
Microsoft.SqlServer.Management.Facets.StateChangeEventAttribute
命名空間: Microsoft.SqlServer.Management.Facets
組件: Microsoft.SqlServer.Dmf (在 Microsoft.SqlServer.Dmf.dll 中)
語法
'宣告
<AttributeUsageAttribute(AttributeTargets.All, AllowMultiple := True)> _
<StrongNameIdentityPermissionAttribute(SecurityAction.LinkDemand, PublicKey := "0024000004800000940000000602000000240000525341310004000001000100272736ad6e5f9586bac2d531eabc3acc666c2f8ec879fa94f8f7b0327d2ff2ed523448f83c3d5c5dd2dfc7bc99c5286b2c125117bf5cbe242b9d41750732b2bdffe649c6efb8e5526d526fdd130095ecdb7bf210809c6cdad8824faa9ac0310ac3cba2aa0523567b2dfa7fe250b30facbd62d4ec99b94ac47c7d3b28f1f6e4c8")> _
Public NotInheritable Class StateChangeEventAttribute _
Inherits Attribute
'用途
Dim instance As StateChangeEventAttribute
[AttributeUsageAttribute(AttributeTargets.All, AllowMultiple = true)]
[StrongNameIdentityPermissionAttribute(SecurityAction.LinkDemand, PublicKey = "0024000004800000940000000602000000240000525341310004000001000100272736ad6e5f9586bac2d531eabc3acc666c2f8ec879fa94f8f7b0327d2ff2ed523448f83c3d5c5dd2dfc7bc99c5286b2c125117bf5cbe242b9d41750732b2bdffe649c6efb8e5526d526fdd130095ecdb7bf210809c6cdad8824faa9ac0310ac3cba2aa0523567b2dfa7fe250b30facbd62d4ec99b94ac47c7d3b28f1f6e4c8")]
public sealed class StateChangeEventAttribute : Attribute
[AttributeUsageAttribute(AttributeTargets::All, AllowMultiple = true)]
[StrongNameIdentityPermissionAttribute(SecurityAction::LinkDemand, PublicKey = L"0024000004800000940000000602000000240000525341310004000001000100272736ad6e5f9586bac2d531eabc3acc666c2f8ec879fa94f8f7b0327d2ff2ed523448f83c3d5c5dd2dfc7bc99c5286b2c125117bf5cbe242b9d41750732b2bdffe649c6efb8e5526d526fdd130095ecdb7bf210809c6cdad8824faa9ac0310ac3cba2aa0523567b2dfa7fe250b30facbd62d4ec99b94ac47c7d3b28f1f6e4c8")]
public ref class StateChangeEventAttribute sealed : public Attribute
[<SealedAttribute>]
[<AttributeUsageAttribute(AttributeTargets.All, AllowMultiple = true)>]
[<StrongNameIdentityPermissionAttribute(SecurityAction.LinkDemand, PublicKey = "0024000004800000940000000602000000240000525341310004000001000100272736ad6e5f9586bac2d531eabc3acc666c2f8ec879fa94f8f7b0327d2ff2ed523448f83c3d5c5dd2dfc7bc99c5286b2c125117bf5cbe242b9d41750732b2bdffe649c6efb8e5526d526fdd130095ecdb7bf210809c6cdad8824faa9ac0310ac3cba2aa0523567b2dfa7fe250b30facbd62d4ec99b94ac47c7d3b28f1f6e4c8")>]
type StateChangeEventAttribute =
class
inherit Attribute
end
public final class StateChangeEventAttribute extends Attribute
StateChangeEventAttribute 型別公開下列成員。
建構函式
名稱 | 說明 | |
---|---|---|
StateChangeEventAttribute(String, String) | Initializes a new instance of the StateChangeEventAttribute class for the specified event and target. | |
StateChangeEventAttribute(String, String, String) | Initializes a new instance of the StateChangeEventAttribute class for the specified event, target type and target type alias. |
上層
屬性
名稱 | 說明 | |
---|---|---|
EventName | Gets the name of the event. | |
TargetType | Gets the type of target. | |
TargetTypeAlias | Gets the alias of the target type. | |
TypeId | (繼承自 Attribute。) |
上層
方法
名稱 | 說明 | |
---|---|---|
Equals | (繼承自 Attribute。) | |
GetHashCode | (繼承自 Attribute。) | |
GetType | (繼承自 Object。) | |
IsDefaultAttribute | (繼承自 Attribute。) | |
Match | (繼承自 Attribute。) | |
ToString | (繼承自 Object。) |
上層
明確 繼承 實作
名稱 | 說明 | |
---|---|---|
_Attribute.GetIDsOfNames | (繼承自 Attribute。) | |
_Attribute.GetTypeInfo | (繼承自 Attribute。) | |
_Attribute.GetTypeInfoCount | (繼承自 Attribute。) | |
_Attribute.Invoke | (繼承自 Attribute。) |
上層
備註
For more information about using attributes, see Extending Metadata Using Attributes.
只有 Microsoft .NET Framework 2.0 版支援此命名空間、類別或成員。
Thread Safety
此型別的任何公用靜態 (在 Microsoft Visual Basic 為共用) 成員具備多執行緒作業安全。並非所有的執行個體成員都是安全執行緒。
執行緒安全性
這個型別的任何公用 static (在 Visual Basic 中為 Shared) 成員都是執行緒安全的。並不是所有的執行個體成員都保證可以用於所有的執行緒。