Compartilhar via


Propriedade do RDL UserDefinedFunction.ExecutionContextPrincipal

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

Essa API não é compatível com CLS. 

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (em Microsoft.SqlServer.Smo.dll)

Sintaxe

'Declaração
<SfcReferenceAttribute(GetType(User), "Server[@Name = '{0}']/Database[@Name = '{1}']/User[@Name = '{2}']",  _
    )> _
<CLSCompliantAttribute(False)> _
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.Standalone Or SfcPropertyFlags.SqlAzureDatabase Or SfcPropertyFlags.Deploy)> _
Public Property ExecutionContextPrincipal As String 
    Get 
    Set
'Uso
Dim instance As UserDefinedFunction 
Dim value As String 

value = instance.ExecutionContextPrincipal

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

Valor da propriedade

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

Comentários

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

Exemplos

Definindo propriedades

Consulte também

Referência

UserDefinedFunction Classe

Namespace Microsoft.SqlServer.Management.Smo

Outros recursos

Funções definidas pelo usuário (Mecanismo de Banco de Dados)

CREATE FUNCTION (Transact-SQL)