Condividi tramite


CursorSwitcher Class

When this class is instantiated, it changes the mouse cursor to that specified constructor. When the instance is disposed, it changes the mouse cursor back.

Inheritance Hierarchy

System.Object
  Microsoft.TeamFoundation.Common.CursorSwitcher

Namespace:  Microsoft.TeamFoundation.Common
Assembly:  Microsoft.VisualStudio.TeamFoundation.Client (in Microsoft.VisualStudio.TeamFoundation.Client.dll)

Syntax

'Dichiarazione
Public Class CursorSwitcher _
    Implements IDisposable
public class CursorSwitcher : IDisposable
public ref class CursorSwitcher : IDisposable
type CursorSwitcher =  
    class
        interface IDisposable
    end
public class CursorSwitcher implements IDisposable

The CursorSwitcher type exposes the following members.

Constructors

  Name Description
Public method CursorSwitcher Initializes a new instance of the CursorSwitcher class.

Top

Methods

  Name Description
Public method Dispose Disposes of this instance and changes the mouse cursor back to the default cursor.
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Prepares this object for disposal. (Overrides Object.Finalize().)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.TeamFoundation.Common Namespace