SettingsStore.GetLastWriteTime Method

Provides the last write time of the properties and sub-collections immediate to the given collection.

Namespace:  Microsoft.VisualStudio.Settings
Assembly:  Microsoft.VisualStudio.Settings (in Microsoft.VisualStudio.Settings.dll)

Syntax

声明
Public MustOverride Function GetLastWriteTime ( _
    collectionPath As String _
) As DateTime
用法
Dim instance As SettingsStore
Dim collectionPath As String
Dim returnValue As DateTime

returnValue = instance.GetLastWriteTime(collectionPath)
public abstract DateTime GetLastWriteTime(
    string collectionPath
)
public:
virtual DateTime GetLastWriteTime(
    String^ collectionPath
) abstract
abstract GetLastWriteTime : 
        collectionPath:string -> DateTime 
public abstract function GetLastWriteTime(
    collectionPath : String
) : DateTime

Parameters

Return Value

Type: System.DateTime
Last update time to the collection in [!:DateTimeKind.Local] format.

Exceptions

Exception Condition
ArgumentException

If the collection does not exist, method throws this exception.

Remarks

The method does report any further changes internal to the sub-collections (i.e. non-recursive). The last write time of a collection is updated if properties are created, deleted or their values modified or if a sub-collection is created or deleted.

.NET Framework Security

See Also

Reference

SettingsStore Class

SettingsStore Members

Microsoft.VisualStudio.Settings Namespace