다음을 통해 공유


ExecutionContextLogin 속성

Gets or sets the login under the context of which the server DDL trigger executes.

이 API는 CLS 규격이 아닙니다. 

네임스페이스:  Microsoft.SqlServer.Management.Smo
어셈블리:  Microsoft.SqlServer.Smo(Microsoft.SqlServer.Smo.dll)

구문

‘선언
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
<SfcReferenceAttribute(GetType(Login), "Server[@Name = '{0}']/Login[@Name = '{1}']",  _
    )> _
<CLSCompliantAttribute(False)> _
Public Property ExecutionContextLogin As String
    Get
    Set
‘사용 방법
Dim instance As ServerDdlTrigger
Dim value As String

value = instance.ExecutionContextLogin

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

속성 값

유형: System. . :: . .String
A ServerDdlTriggerEventSet object that specifies the events that raise the server DDL trigger.

주의

This property is required only when the ExecutionContext property is set to ExecuteAsLogin.