Table of Contents

Class FileInfo

Namespace
Gio
Assembly
Gio-2.0.dll
public class FileInfo : Object, IObject, INotifyPropertyChanged, IDisposable, IHandle, GTypeProvider
Inheritance
FileInfo
Implements
Inherited Members

Constructors

FileInfo(bool, params ConstructArgument[])

protected FileInfo(bool owned, params ConstructArgument[] constructArguments)

Parameters

owned bool
constructArguments ConstructArgument[]

FileInfo(IntPtr, bool)

protected FileInfo(IntPtr ptr, bool ownedRef)

Parameters

ptr IntPtr
ownedRef bool

Methods

ClearStatus()

public void ClearStatus()

CopyInto(FileInfo)

public void CopyInto(FileInfo destInfo)

Parameters

destInfo FileInfo

Dup()

public FileInfo Dup()

Returns

FileInfo

GetAccessDateTime()

[Version("2.70")]
public DateTime? GetAccessDateTime()

Returns

DateTime

GetAttributeAsString(string)

public string? GetAttributeAsString(string attribute)

Parameters

attribute string

Returns

string

GetAttributeBoolean(string)

public bool GetAttributeBoolean(string attribute)

Parameters

attribute string

Returns

bool

GetAttributeByteString(string)

public string? GetAttributeByteString(string attribute)

Parameters

attribute string

Returns

string

GetAttributeFilePath(string)

[Version("2.78")]
public string? GetAttributeFilePath(string attribute)

Parameters

attribute string

Returns

string

GetAttributeInt32(string)

public int GetAttributeInt32(string attribute)

Parameters

attribute string

Returns

int

GetAttributeInt64(string)

public long GetAttributeInt64(string attribute)

Parameters

attribute string

Returns

long

GetAttributeObject(string)

public Object? GetAttributeObject(string attribute)

Parameters

attribute string

Returns

Object

GetAttributeStatus(string)

public FileAttributeStatus GetAttributeStatus(string attribute)

Parameters

attribute string

Returns

FileAttributeStatus

GetAttributeString(string)

public string? GetAttributeString(string attribute)

Parameters

attribute string

Returns

string

GetAttributeStringv(string)

[Version("2.22")]
public string[]? GetAttributeStringv(string attribute)

Parameters

attribute string

Returns

string[]

GetAttributeType(string)

public FileAttributeType GetAttributeType(string attribute)

Parameters

attribute string

Returns

FileAttributeType

GetAttributeUint32(string)

public uint GetAttributeUint32(string attribute)

Parameters

attribute string

Returns

uint

GetAttributeUint64(string)

public ulong GetAttributeUint64(string attribute)

Parameters

attribute string

Returns

ulong

GetContentType()

public string? GetContentType()

Returns

string

GetCreationDateTime()

[Version("2.70")]
public DateTime? GetCreationDateTime()

Returns

DateTime

GetDeletionDate()

[Version("2.36")]
public DateTime? GetDeletionDate()

Returns

DateTime

GetDisplayName()

public string GetDisplayName()

Returns

string

GetEditName()

public string GetEditName()

Returns

string

GetEtag()

public string? GetEtag()

Returns

string

GetFileType()

public FileType GetFileType()

Returns

FileType

GetGType()

public static Type GetGType()

Returns

Type

GetIcon()

public Icon? GetIcon()

Returns

Icon

GetIsBackup()

public bool GetIsBackup()

Returns

bool

GetIsHidden()

public bool GetIsHidden()

Returns

bool
public bool GetIsSymlink()

Returns

bool

GetModificationDateTime()

[Version("2.62")]
public DateTime? GetModificationDateTime()

Returns

DateTime

GetModificationTime(out TimeVal)

public void GetModificationTime(out TimeVal result)

Parameters

result TimeVal

GetName()

public string GetName()

Returns

string

GetSize()

public long GetSize()

Returns

long

GetSortOrder()

public int GetSortOrder()

Returns

int

GetSymbolicIcon()

[Version("2.34")]
public Icon? GetSymbolicIcon()

Returns

Icon

GetSymlinkTarget()

public string? GetSymlinkTarget()

Returns

string

HasAttribute(string)

public bool HasAttribute(string attribute)

Parameters

attribute string

Returns

bool

HasNamespace(string)

[Version("2.22")]
public bool HasNamespace(string nameSpace)

Parameters

nameSpace string

Returns

bool

ListAttributes(string?)

public string[]? ListAttributes(string? nameSpace)

Parameters

nameSpace string

Returns

string[]

New()

public static FileInfo New()

Returns

FileInfo

RemoveAttribute(string)

public void RemoveAttribute(string attribute)

Parameters

attribute string

SetAccessDateTime(DateTime)

[Version("2.70")]
public void SetAccessDateTime(DateTime atime)

Parameters

atime DateTime

SetAttribute(string, FileAttributeType, IntPtr)

public void SetAttribute(string attribute, FileAttributeType type, IntPtr valueP)

Parameters

attribute string
type FileAttributeType
valueP IntPtr

SetAttributeBoolean(string, bool)

public void SetAttributeBoolean(string attribute, bool attrValue)

Parameters

attribute string
attrValue bool

SetAttributeByteString(string, string)

public void SetAttributeByteString(string attribute, string attrValue)

Parameters

attribute string
attrValue string

SetAttributeFilePath(string, string)

[Version("2.78")]
public void SetAttributeFilePath(string attribute, string attrValue)

Parameters

attribute string
attrValue string

SetAttributeInt32(string, int)

public void SetAttributeInt32(string attribute, int attrValue)

Parameters

attribute string
attrValue int

SetAttributeInt64(string, long)

public void SetAttributeInt64(string attribute, long attrValue)

Parameters

attribute string
attrValue long

SetAttributeMask(FileAttributeMatcher)

public void SetAttributeMask(FileAttributeMatcher mask)

Parameters

mask FileAttributeMatcher

SetAttributeObject(string, Object)

public void SetAttributeObject(string attribute, Object attrValue)

Parameters

attribute string
attrValue Object

SetAttributeStatus(string, FileAttributeStatus)

[Version("2.22")]
public bool SetAttributeStatus(string attribute, FileAttributeStatus status)

Parameters

attribute string
status FileAttributeStatus

Returns

bool

SetAttributeString(string, string)

public void SetAttributeString(string attribute, string attrValue)

Parameters

attribute string
attrValue string

SetAttributeStringv(string, string[])

public void SetAttributeStringv(string attribute, string[] attrValue)

Parameters

attribute string
attrValue string[]

SetAttributeUint32(string, uint)

public void SetAttributeUint32(string attribute, uint attrValue)

Parameters

attribute string
attrValue uint

SetAttributeUint64(string, ulong)

public void SetAttributeUint64(string attribute, ulong attrValue)

Parameters

attribute string
attrValue ulong

SetContentType(string)

public void SetContentType(string contentType)

Parameters

contentType string

SetCreationDateTime(DateTime)

[Version("2.70")]
public void SetCreationDateTime(DateTime creationTime)

Parameters

creationTime DateTime

SetDisplayName(string)

public void SetDisplayName(string displayName)

Parameters

displayName string

SetEditName(string)

public void SetEditName(string editName)

Parameters

editName string

SetFileType(FileType)

public void SetFileType(FileType type)

Parameters

type FileType

SetIcon(Icon)

public void SetIcon(Icon icon)

Parameters

icon Icon

SetIsHidden(bool)

public void SetIsHidden(bool isHidden)

Parameters

isHidden bool
public void SetIsSymlink(bool isSymlink)

Parameters

isSymlink bool

SetModificationDateTime(DateTime)

[Version("2.62")]
public void SetModificationDateTime(DateTime mtime)

Parameters

mtime DateTime

SetModificationTime(TimeVal)

public void SetModificationTime(TimeVal mtime)

Parameters

mtime TimeVal

SetName(string)

public void SetName(string name)

Parameters

name string

SetSize(long)

public void SetSize(long size)

Parameters

size long

SetSortOrder(int)

public void SetSortOrder(int sortOrder)

Parameters

sortOrder int

SetSymbolicIcon(Icon)

[Version("2.34")]
public void SetSymbolicIcon(Icon icon)

Parameters

icon Icon

SetSymlinkTarget(string)

public void SetSymlinkTarget(string symlinkTarget)

Parameters

symlinkTarget string

UnsetAttributeMask()

public void UnsetAttributeMask()