StoredProcedure.ExecutionContext 属性

Gets or sets the execution context for the stored procedure.

命名空间:  Microsoft.SqlServer.Management.Smo
程序集:  Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)

语法

声明
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.Standalone Or SfcPropertyFlags.SqlAzureDatabase Or SfcPropertyFlags.Deploy)> _
Public Property ExecutionContext As ExecutionContext 
    Get 
    Set
用法
Dim instance As StoredProcedure 
Dim value As ExecutionContext 

value = instance.ExecutionContext

instance.ExecutionContext = value
[SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase|SfcPropertyFlags.Deploy)]
public ExecutionContext ExecutionContext { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::None|SfcPropertyFlags::Standalone|SfcPropertyFlags::SqlAzureDatabase|SfcPropertyFlags::Deploy)]
public:
property ExecutionContext ExecutionContext {
    ExecutionContext get ();
    void set (ExecutionContext value);
}
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase|SfcPropertyFlags.Deploy)>]
member ExecutionContext : ExecutionContext with get, set
function get ExecutionContext () : ExecutionContext 
function set ExecutionContext (value : ExecutionContext)

属性值

类型:Microsoft.SqlServer.Management.Smo.ExecutionContext
An ExecutionContext object value that specifies the execution context of the stored procedure.

注释

If the ExecutionContext property is set to ExecuteAsPrincipal, a value is required for the ExecutionContextPrincipal property.

示例

创建、更改和删除存储过程

请参阅

参考

StoredProcedure 类

Microsoft.SqlServer.Management.Smo 命名空间

其他资源

CREATE PROCEDURE (Transact-SQL)