CodeContainer Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
CodeContainer(CodespaceCodeContainer, Boolean, DateTimeOffset) |
Initializes a new instance of the CodeContainer class. |
CodeContainer(CodeContainerLocalProperties, RemoteCodeContainer, Boolean, DateTimeOffset) |
Initializes a new instance of the CodeContainer class. Either |
CodeContainer(CodespaceCodeContainer, Boolean, DateTimeOffset)
Initializes a new instance of the CodeContainer class.
public:
CodeContainer(Microsoft::VisualStudio::Shell::CodeContainerManagement::CodespaceCodeContainer ^ codespaceProperties, bool isFavorite, DateTimeOffset lastAccessed);
public CodeContainer (Microsoft.VisualStudio.Shell.CodeContainerManagement.CodespaceCodeContainer codespaceProperties, bool isFavorite, DateTimeOffset lastAccessed);
new Microsoft.VisualStudio.Shell.CodeContainerManagement.CodeContainer : Microsoft.VisualStudio.Shell.CodeContainerManagement.CodespaceCodeContainer * bool * DateTimeOffset -> Microsoft.VisualStudio.Shell.CodeContainerManagement.CodeContainer
Public Sub New (codespaceProperties As CodespaceCodeContainer, isFavorite As Boolean, lastAccessed As DateTimeOffset)
Parameters
- codespaceProperties
- CodespaceCodeContainer
Codespace properties.
- isFavorite
- Boolean
A flag that indicates if this container has been marked favorite by the user.
- lastAccessed
- DateTimeOffset
Last accessed timestamp.
Applies to
CodeContainer(CodeContainerLocalProperties, RemoteCodeContainer, Boolean, DateTimeOffset)
Initializes a new instance of the CodeContainer class. Either localProperties
or
remote
(or both) must be non-null.
public:
CodeContainer(Microsoft::VisualStudio::Shell::CodeContainerManagement::CodeContainerLocalProperties ^ localProperties, Microsoft::VisualStudio::Shell::CodeContainerManagement::RemoteCodeContainer ^ remote, bool isFavorite, DateTimeOffset lastAccessed);
public CodeContainer (Microsoft.VisualStudio.Shell.CodeContainerManagement.CodeContainerLocalProperties localProperties, Microsoft.VisualStudio.Shell.CodeContainerManagement.RemoteCodeContainer remote, bool isFavorite, DateTimeOffset lastAccessed);
public CodeContainer (Microsoft.VisualStudio.Shell.CodeContainerManagement.CodeContainerLocalProperties? localProperties, Microsoft.VisualStudio.Shell.CodeContainerManagement.RemoteCodeContainer? remote, bool isFavorite, DateTimeOffset lastAccessed);
new Microsoft.VisualStudio.Shell.CodeContainerManagement.CodeContainer : Microsoft.VisualStudio.Shell.CodeContainerManagement.CodeContainerLocalProperties * Microsoft.VisualStudio.Shell.CodeContainerManagement.RemoteCodeContainer * bool * DateTimeOffset -> Microsoft.VisualStudio.Shell.CodeContainerManagement.CodeContainer
Public Sub New (localProperties As CodeContainerLocalProperties, remote As RemoteCodeContainer, isFavorite As Boolean, lastAccessed As DateTimeOffset)
Parameters
- localProperties
- CodeContainerLocalProperties
Local properties.
- remote
- RemoteCodeContainer
The server-side version.
- isFavorite
- Boolean
A flag that indicates if this container has been marked favorite by the user.
- lastAccessed
- DateTimeOffset
Last accessed timestamp.