UserDefinedFunction.ExecutionContextPrincipal Property
Gets or sets the execution context principal for the user-defined function.
This API is not CLS-compliant.
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
Syntax
'Bildirim
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.Standalone Or SfcPropertyFlags.SqlAzureDatabase Or SfcPropertyFlags.Deploy)> _
<CLSCompliantAttribute(False)> _
<SfcReferenceAttribute(GetType(User), "Server[@Name = '{0}']/Database[@Name = '{1}']/User[@Name = '{2}']", _
)> _
Public Property ExecutionContextPrincipal As String
Get
Set
'Kullanım
Dim instance As UserDefinedFunction
Dim value As String
value = instance.ExecutionContextPrincipal
instance.ExecutionContextPrincipal = value
[SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase|SfcPropertyFlags.Deploy)]
[CLSCompliantAttribute(false)]
[SfcReferenceAttribute(typeof(User), "Server[@Name = '{0}']/Database[@Name = '{1}']/User[@Name = '{2}']",
)]
public string ExecutionContextPrincipal { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::None|SfcPropertyFlags::Standalone|SfcPropertyFlags::SqlAzureDatabase|SfcPropertyFlags::Deploy)]
[CLSCompliantAttribute(false)]
[SfcReferenceAttribute(typeof(User), L"Server[@Name = '{0}']/Database[@Name = '{1}']/User[@Name = '{2}']",
)]
public:
property String^ ExecutionContextPrincipal {
String^ get ();
void set (String^ value);
}
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase|SfcPropertyFlags.Deploy)>]
[<CLSCompliantAttribute(false)>]
[<SfcReferenceAttribute(typeof(User), "Server[@Name = '{0}']/Database[@Name = '{1}']/User[@Name = '{2}']",
)>]
member ExecutionContextPrincipal : string with get, set
function get ExecutionContextPrincipal () : String
function set ExecutionContextPrincipal (value : String)
Property Value
Type: System.String
A String value that specifies the server principal context in which the object is executed.
Remarks
If the ExecutionContext property is set to ExecuteAsPrincipal, a value is required for the ExecutionContextPrincipal property.
Examples
See Also
Reference
Microsoft.SqlServer.Management.Smo Namespace