Session.CreateSession Method (SessionStartInfo, Int32)

Creates a session by using the specified timeout value (the session must be created within the specified period or the call fails).


Namespace: Microsoft.Hpc.Scheduler.Session
Assembly: Microsoft.Hpc.Scheduler.Session (in Microsoft.Hpc.Scheduler.Session.dll)

'Usage
Dim startInfo As SessionStartInfo
Dim timeoutMilliseconds As Integer
Dim returnValue As Session

returnValue = Session.CreateSession(startInfo, timeoutMilliseconds)

[ObsoleteAttribute("This CreateSession method overload is obsolete. The timeoutMilliseconds argument is no longer supported. Please use a version that does not take a timeoutMilliseconds argument.")] 
public static Session CreateSession (
	SessionStartInfo startInfo,
	int timeoutMilliseconds
)
/** @attribute ObsoleteAttribute("This CreateSession method overload is obsolete. The timeoutMilliseconds argument is no longer supported. Please use a version that does not take a timeoutMilliseconds argument.") */ 
public static Session CreateSession (
	SessionStartInfo startInfo, 
	int timeoutMilliseconds
)
ObsoleteAttribute("This CreateSession method overload is obsolete. The timeoutMilliseconds argument is no longer supported. Please use a version that does not take a timeoutMilliseconds argument.") 
public static function CreateSession (
	startInfo : SessionStartInfo, 
	timeoutMilliseconds : int
) : Session

Parameters

startInfo

A SessionStartInfo class that contains information for starting the session.

timeoutMilliseconds

The amount of time, in milliseconds, in which the session must be created. If the time to create the session exceeds the timeout value, the call fails. The default is System.Threading.Timeout.Infinite.

Return Value

A Session object that defines the session.

No members of this type are thread safe.

Development Platforms

Windows XP, Windows Vista, Windows 7, Windows 8, Windows Server 2003, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012

Target Platforms

Windows XP, Windows Vista, Windows 7, Windows 8, Windows Server 2003, Windows Server 2003 R2, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, with HPC Pack Client Utilities




Build Date:

2013-04-22
Show: