次の方法で共有


Session Class

 

Manages a collection of related items of type Project and provides an Ide.

Namespace:   Microsoft.VisualStudio.Tools.Applications
Assembly:  Microsoft.VisualStudio.Tools.Applications (in Microsoft.VisualStudio.Tools.Applications.dll)

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.Tools.Applications.Session

Syntax

public sealed class Session : IDisposable
public ref class Session sealed : IDisposable
[<Sealed>]
type Session = 
    class
        interface IDisposable
    end
Public NotInheritable Class Session
    Implements IDisposable

Properties

Name Description
System_CAPS_pubproperty Id

Gets the ID of an instance of the session.

System_CAPS_pubproperty Ide

Gets the value of Ide for this Session object.

Methods

Name Description
System_CAPS_pubmethod Dispose()

Closes the Session, disposes of the child Project under it and also removes it from its parent SessionManager.

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetProjects()

Gets a collection of projects of type Project in the session.

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_pubmethod LoadProject(IProjectStorage)

Creates a new project of type Project from the projectStorage and loads it inside a Session object.

System_CAPS_pubmethod ToString()

(Inherited from Object.)

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

Microsoft.VisualStudio.Tools.Applications Namespace

Return to top