Table of Contents

Interface IStorageItem

Namespace
Windows.Storage
Assembly
Windows.Storage.dll

Manipulates storage items (files and folders) and their contents, and provides information about them.

public interface IStorageItem
Extension Methods

Properties

Attributes

Gets the attributes of a file.

FileAttributes Attributes { get; }

Property Value

FileAttributes

The file attributes.

DateCreated

Gets the date and time that the current folder was created.

DateTime DateCreated { get; }

Property Value

DateTime

Remarks

This is the nanoFrameowrk equivalent of UWP DateCreated of type DateTimeOffset.

Name

Gets the name of the item including the file name extension if there is one.

string Name { get; }

Property Value

string

Path

Gets the full file-system path of the item, if the item has a path.

string Path { get; }

Property Value

string

Methods

Rename(string)

Renames the current item.

void Rename(string desiredName)

Parameters

desiredName string

The desired, new name of the item.