Właściwość DatabaseDdlTrigger.ExecutionContextUser

Pobiera lub ustawia użytkownika bazy danych, który jest kontekstem, używany podczas uruchamia wyzwalacz DLL bazy danych.

Ten interfejs API nie jest zgodny ze specyfikacją CLS. 

Przestrzeń nazw:  Microsoft.SqlServer.Management.Smo
Zestaw:  Microsoft.SqlServer.Smo (w Microsoft.SqlServer.Smo.dll)

Składnia

'Deklaracja
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.Standalone Or SfcPropertyFlags.SqlAzureDatabase)> _
<SfcReferenceAttribute(GetType(User), "Server[@Name = '{0}']/Database[@Name = '{1}']/User[@Name = '{2}']",  _
    )> _
<CLSCompliantAttribute(False)> _
Public Property ExecutionContextUser As String
    Get
    Set
'Użycie
Dim instance As DatabaseDdlTrigger
Dim value As String

value = instance.ExecutionContextUser

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

Wartość właściwości

Typ: System.String
A String wartość określająca użytkownika bazy danych jest używany, gdy wykonuje bazy danych wyzwalacz DLL kontekstem.

Uwagi

Właściwość ta jest wymagana tylko wtedy, gdy ExecutionContext właściwość jest zestaw do ExecuteAsUser.