共用方式為


ExecutionContextPrincipal 屬性

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

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
<SfcPropertyAttribute> _
Public Property ExecutionContextPrincipal As String
    Get
    Set
'用途
Dim instance As UserDefinedFunction
Dim value As String

value = instance.ExecutionContextPrincipal

instance.ExecutionContextPrincipal = value
[SfcPropertyAttribute]
public string ExecutionContextPrincipal { get; set; }
[SfcPropertyAttribute]
public:
property String^ ExecutionContextPrincipal {
    String^ get ();
    void set (String^ value);
}
[<SfcPropertyAttribute>]
member ExecutionContextPrincipal : string with get, set
function get ExecutionContextPrincipal () : String
function set ExecutionContextPrincipal (value : String)

屬性值

型別:System. . :: . .String
A String value that specifies the server principal context in which the object is executed.

備註

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

範例

設定屬性