Show/Hide Toolbars

Inventu Viewer+ .NET Programmer's Reference

Navigation: HostConnection Class > Methods

SetSessionFolder (boolean - static)

Scroll Prev Top Next More

Set the active session folder associated to the provided sessionKey.  This method avoids the need to connect a session in order to set the active sessionFolder for a connected user.

 

Boolean HostConnection.SetSessionFolder(String sessionKey, String folderPath);

 

Arguments

 

HostConnection

Required. HostConnection class Reference (this is a static method, no HostConnection object need be created prior to calling this method

 

sessionKey

Required. The session key for the active session to query.  If the session key is not valid, no value is set and false is returned;

 

folderPath

Required. Will set the active sessionFolder path for the session, if the session key is valid.

 

Remarks

 

Returns false if the sessionkey is invalid, true if the sessionkey is valid.  If folderPath exceeds the available length for the sessionFolder (260 characters), it will be truncated.

 

The following sample sets the folderPath, returning the result of the HostConnection method.

 

 bool SetSessionFolder(string sessionKey, string path)

 {

         return HostConnection.SetSessionFolder(sessionKey, path);

 }

 

See Also

 

GetSessionFolder

 

Applies To: HostConnection object

 


© 2022 Inventu Corporation