Share via


IExecutionContextFactory.CreateExecuteAsCaller Method

Creates an IExecutionContext object that represents the EXECUTE AS CALLER execution context.

Namespace:  Microsoft.SqlServer.Management.SqlParser.MetadataProvider
Assembly:  Microsoft.SqlServer.Management.SqlParser (in Microsoft.SqlServer.Management.SqlParser.dll)

Syntax

'Declaration
Function CreateExecuteAsCaller As IExecutionContext
'Usage
Dim instance As IExecutionContextFactory
Dim returnValue As IExecutionContext

returnValue = instance.CreateExecuteAsCaller()
IExecutionContext CreateExecuteAsCaller()
IExecutionContext^ CreateExecuteAsCaller()
abstract CreateExecuteAsCaller : unit -> IExecutionContext 
function CreateExecuteAsCaller() : IExecutionContext

Return Value

Type: Microsoft.SqlServer.Management.SqlParser.Metadata.IExecutionContext
An IExecutionContext object that represents the EXECUTE AS CALLER execution context.