共用方式為


UserDefinedFunction.ExecutionContext 屬性

Gets or sets the execution context for the user-defined function.

命名空間:  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 UserDefinedFunction 
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 user-defined function.

備註

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

範例

設定屬性

請參閱

參考

UserDefinedFunction 類別

Microsoft.SqlServer.Management.Smo 命名空間

其他資源

使用者定義函數 (Database Engine)

CREATE FUNCTION (Transact-SQL)