Share via


Propriété ExecutionContext

Obtient ou définit le contexte d'exécution pour la procédure stockée.

Espace de noms :  Microsoft.SqlServer.Management.Smo
Assembly :  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Syntaxe

'Déclaration
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.Standalone Or SfcPropertyFlags.SqlAzureDatabase Or SfcPropertyFlags.Deploy)> _
Public Property ExecutionContext As ExecutionContext
    Get
    Set
'Utilisation
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)

Valeur de propriété

Type : Microsoft.SqlServer.Management.Smo. . :: . .ExecutionContext
Valeur de l'objet ExecutionContext qui spécifie le contexte d'exécution de la procédure stockée.

Notes

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