Share via


IExecutionContextFactory.CreateExecuteAsUser Method

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

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

Syntax

'Declaration
Function CreateExecuteAsUser ( _
    user As IUser _
) As IExecutionContext
'Usage
Dim instance As IExecutionContextFactory
Dim user As IUser
Dim returnValue As IExecutionContext

returnValue = instance.CreateExecuteAsUser(user)
IExecutionContext CreateExecuteAsUser(
    IUser user
)
IExecutionContext^ CreateExecuteAsUser(
    IUser^ user
)
abstract CreateExecuteAsUser : 
        user:IUser -> IExecutionContext 
function CreateExecuteAsUser(
    user : IUser
) : IExecutionContext

Parameters

Return Value

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