Partager via


Propriété Trigger.ExecutionContextPrincipal

Gets or sets the execution context principal.

Cette API n'est pas conforme CLS. 

Espace de noms :  Microsoft.SqlServer.Management.Smo
Assembly :  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Syntaxe

'Déclaration
<CLSCompliantAttribute(False)> _
<SfcReferenceAttribute(GetType(User), "Server[@Name = '{0}']/Database[@Name = '{1}']/User[@Name = '{2}']",  _
    )> _
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.Standalone Or SfcPropertyFlags.SqlAzureDatabase Or SfcPropertyFlags.Deploy)> _
Public Property ExecutionContextPrincipal As String 
    Get 
    Set
'Utilisation
Dim instance As Trigger 
Dim value As String 

value = instance.ExecutionContextPrincipal

instance.ExecutionContextPrincipal = value
[CLSCompliantAttribute(false)]
[SfcReferenceAttribute(typeof(User), "Server[@Name = '{0}']/Database[@Name = '{1}']/User[@Name = '{2}']", 
    )]
[SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase|SfcPropertyFlags.Deploy)]
public string ExecutionContextPrincipal { get; set; }
[CLSCompliantAttribute(false)]
[SfcReferenceAttribute(typeof(User), L"Server[@Name = '{0}']/Database[@Name = '{1}']/User[@Name = '{2}']", 
    )]
[SfcPropertyAttribute(SfcPropertyFlags::None|SfcPropertyFlags::Standalone|SfcPropertyFlags::SqlAzureDatabase|SfcPropertyFlags::Deploy)]
public:
property String^ ExecutionContextPrincipal {
    String^ get ();
    void set (String^ value);
}
[<CLSCompliantAttribute(false)>]
[<SfcReferenceAttribute(typeof(User), "Server[@Name = '{0}']/Database[@Name = '{1}']/User[@Name = '{2}']", 
    )>]
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase|SfcPropertyFlags.Deploy)>]
member ExecutionContextPrincipal : string with get, set
function get ExecutionContextPrincipal () : String 
function set ExecutionContextPrincipal (value : String)

Valeur de propriété

Type : System.String
A String value that specifies the execution context principal.

Exemples

Création, modification et suppression de déclencheurs

Voir aussi

Référence

Trigger Classe

Espace de noms Microsoft.SqlServer.Management.Smo

Autres ressources

Déclencheurs DML

CREATE TRIGGER (Transact-SQL)