Compartir a través de


CodeContainer Constructors

Definition

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 localProperties or remote (or both) must be non-null.

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.

Applies to