Initializes a new instance of the SftpItem class.

Namespace:  Rebex.Net
Assembly:  Rebex.Sftp (in Rebex.Sftp.dll)

Syntax

Visual Basic
Public Sub New ( _
	filename As String, _
	size As Long, _
	type As SftpItemType, _
	accessed As Nullable(Of DateTime), _
	modified As Nullable(Of DateTime), _
	created As Nullable(Of DateTime) _
)
C#
public SftpItem(
	string filename,
	long size,
	SftpItemType type,
	Nullable<DateTime> accessed,
	Nullable<DateTime> modified,
	Nullable<DateTime> created
)

Parameters

filename
Type: System..::..String
The name of the file or directory.
size
Type: System..::..Int64
The size of the file.
type
Type: Rebex.Net..::..SftpItemType
The type of item.
accessed
Type: System..::..Nullable<(Of <(<'DateTime>)>)>
The Nullable<(Of <(<'T>)>)> of last access.
modified
Type: System..::..Nullable<(Of <(<'DateTime>)>)>
The Nullable<(Of <(<'T>)>)> of last modification.
created
Type: System..::..Nullable<(Of <(<'DateTime>)>)>
The Nullable<(Of <(<'T>)>)> of item creation. Only supported for SFTP v4 servers!

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also