Share via


IExecutionContextFactory.CreateExecuteAsOwner Method

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

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

Syntax

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

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

Return Value

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

See Also

Reference

IExecutionContextFactory Interface

Microsoft.SqlServer.Management.SqlParser.MetadataProvider Namespace