LocationExtensions AsDirectConnection Method Qlik Sense .NET SDK - API Reference
Defining the location as a direct connection to Qlik Sense using a specific user

Namespace: Qlik.Engine
Assembly: Qlik.Engine (in Qlik.Engine.dll) Version: 1.0.1.0 (1.0.1.0)
Syntax

public static void AsDirectConnection(
	this ILocation location,
	string userDirectory,
	string userId,
	bool extendedSecurityEnvironment = false
)

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ILocation. When you use instance method syntax to call this method, omit the first parameter. For more information, see OnlineExtension Methods (Visual Basic) or OnlineExtension Methods (C# Programming Guide).
See Also