Clase StateChangeEventAttribute
The StateChangeEventAttribute class contains the attribute that is attached to the state change event in policy-based management.
Jerarquía de herencia
System.Object
System.Attribute
Microsoft.SqlServer.Management.Facets.StateChangeEventAttribute
Espacio de nombres: Microsoft.SqlServer.Management.Facets
Ensamblado: Microsoft.SqlServer.Dmf (en Microsoft.SqlServer.Dmf.dll)
Sintaxis
'Declaración
<AttributeUsageAttribute(AttributeTargets.All, AllowMultiple := True)> _
<StrongNameIdentityPermissionAttribute(SecurityAction.LinkDemand, PublicKey := "0024000004800000940000000602000000240000525341310004000001000100272736ad6e5f9586bac2d531eabc3acc666c2f8ec879fa94f8f7b0327d2ff2ed523448f83c3d5c5dd2dfc7bc99c5286b2c125117bf5cbe242b9d41750732b2bdffe649c6efb8e5526d526fdd130095ecdb7bf210809c6cdad8824faa9ac0310ac3cba2aa0523567b2dfa7fe250b30facbd62d4ec99b94ac47c7d3b28f1f6e4c8")> _
Public NotInheritable Class StateChangeEventAttribute _
Inherits Attribute
'Uso
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
El tipo StateChangeEventAttribute expone los siguientes miembros.
Constructores
Nombre | Descripción | |
---|---|---|
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. |
Arriba
Propiedades
Nombre | Descripción | |
---|---|---|
EventName | Gets the name of the event. | |
TargetType | Gets the type of target. | |
TargetTypeAlias | Gets the alias of the target type. | |
TypeId | (Se hereda de Attribute.) |
Arriba
Métodos
Nombre | Descripción | |
---|---|---|
Equals | (Se hereda de Attribute.) | |
GetHashCode | (Se hereda de Attribute.) | |
GetType | (Se hereda de Object.) | |
IsDefaultAttribute | (Se hereda de Attribute.) | |
Match | (Se hereda de Attribute.) | |
ToString | (Se hereda de Object.) |
Arriba
Implementaciones de interfaces explícitas
Nombre | Descripción | |
---|---|---|
_Attribute.GetIDsOfNames | (Se hereda de Attribute.) | |
_Attribute.GetTypeInfo | (Se hereda de Attribute.) | |
_Attribute.GetTypeInfoCount | (Se hereda de Attribute.) | |
_Attribute.Invoke | (Se hereda de Attribute.) |
Arriba
Comentarios
For more information about using attributes, see Extending Metadata Using Attributes.
Este espacio de nombres, clase o miembro solamente se admite en la versión 2.0 de Microsoft .NET Framework.
Thread Safety
Todos los miembros estáticos (compartidos en Microsoft Visual Basic) públicos de este tipo son seguros para operaciones multiproceso. No se garantiza que los miembros de instancia sean seguros para subprocesos.
Seguridad para subprocesos
Cualquier miembro público static (Shared en Visual Basic) de este tipo es seguro para subprocesos. No se garantiza que los miembros de instancia sean seguros para subprocesos.