BrokerClient.Dispose Method

Releases all of the resources that the BrokerClient object used.


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

'Usage
Dim disposing As Boolean

Me.Dispose(disposing)

protected override void Dispose (
	bool disposing
)
protected void Dispose (
	boolean disposing
)
protected override function Dispose (
	disposing : boolean
)

Parameters

disposing

Boolean that specifies whether to release managed resources in addition to unmanaged resources. True indicates that the managed and unmanaged resources should be released because the code is calling the method directly. False indicates that only the unmanaged resources can be disposed of because the method is being called by the Finalize method.

You must dispose of an BrokerClient object when you finish using it by calling the Close method or by creating the object by calling the BrokerClient constructor within a using Statement (http://go.microsoft.com/fwlink/?LinkId=177731) in C#. The Close method in turn calls the Dispose method.

Platform Note: This method was introduced in Windows HPC Server 2008 R2 and is not supported in previous versions.


Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be 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: