Класс 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
Все общие статические члены этого типа (Shared в Microsoft Visual Basic) можно использовать в многопоточных операциях. Потокобезопасная работа с членами экземпляров типа не гарантируется.
Безопасность многопоточности
Любые открытые статический (Shared в Visual Basic) элементы этого типа потокобезопасны. Потокобезопасность с элементами экземпляров не гарантируется.